Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 239 MB, free: 4.738 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 188.5 kB / 289.3 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03492/0.03492, allocations: 8.799 MB / 348.2 MB, free: 4.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 77.5 kB / 410.7 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06985/0.07128, allocations: 51.56 MB / 462.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003275/0.07459, allocations: 2.082 MB / 464.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.07605, allocations: 0.9548 MB / 465.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.226e-05/0.07616, allocations: 4 kB / 465.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003544/0.07652, allocations: 119.7 kB / 465.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.0768, allocations: 95.62 kB / 465.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.07713, allocations: 121.2 kB / 465.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.07738, allocations: 215.2 kB / 465.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.07753, allocations: 45.64 kB / 465.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.07765, allocations: 91.64 kB / 466 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.07781, allocations: 119.6 kB / 466.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.671e-05/0.07784, allocations: 12 kB / 466.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.821e-05/0.07795, allocations: 51.92 kB / 466.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.206e-05/0.07801, allocations: 47.84 kB / 466.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.291e-05/0.0781, allocations: 87.47 kB / 466.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.07837, allocations: 227.4 kB / 466.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.07839, allocations: 4 kB / 466.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.07839, allocations: 0 / 466.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.0784, allocations: 0 / 466.5 MB, free: 10.34 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006415/0.07905, allocations: 0.5043 MB / 467 MB, free: 9.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.07909, allocations: 8.031 kB / 467 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.07915, allocations: 46.73 kB / 467.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.705e-05/0.0792, allocations: 24.66 kB / 467.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.07945, allocations: 240 kB / 467.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.07948, allocations: 16.55 kB / 467.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.991e-05/0.07951, allocations: 11.94 kB / 467.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.07982, allocations: 149.4 kB / 467.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.07984, allocations: 0 / 467.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.07986, allocations: 0 / 467.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.07987, allocations: 4 kB / 467.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.08003, allocations: 72.59 kB / 467.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000748/0.08079, allocations: 0.6264 MB / 468.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.08102, allocations: 94.61 kB / 468.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.709e-05/0.08111, allocations: 36.84 kB / 468.3 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.08114, allocations: 4 kB / 468.3 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/0.08137, allocations: 87.31 kB / 468.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.08138, allocations: 3.938 kB / 468.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003469/0.08173, allocations: 153.3 kB / 468.6 MB, free: 8.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.08178, allocations: 51.41 kB / 468.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.08202, allocations: 268.1 kB / 468.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.08205, allocations: 25.7 kB / 468.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.163e-05/0.08214, allocations: 148.1 kB / 469 MB, free: 7.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.08219, allocations: 35.48 kB / 469.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.08224, allocations: 33.7 kB / 469.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.08235, allocations: 330.8 kB / 469.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.726e-05/0.08244, allocations: 31.98 kB / 469.5 MB, free: 7.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.144e-05/0.08253, allocations: 66.38 kB / 469.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.0827, allocations: 104.2 kB / 469.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.08271, allocations: 0 / 469.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002435/0.08296, allocations: 145.3 kB / 469.8 MB, free: 6.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.08299, allocations: 14.31 kB / 469.8 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.083, allocations: 0 / 469.8 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.08302, allocations: 4 kB / 469.8 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.08316, allocations: 23.98 kB / 469.8 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.08318, allocations: 4 kB / 469.8 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.49e-05/0.08325, allocations: 19.77 kB / 469.8 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.08327, allocations: 8 kB / 469.9 MB, free: 6.711 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.08339, allocations: 142.4 kB / 470 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.08342, allocations: 15.81 kB / 470 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.04e-05/0.08348, allocations: 29.39 kB / 470 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.08349, allocations: 0 / 470 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.0835, allocations: 4 kB / 470 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.08351, allocations: 0 / 470 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.08371, allocations: 245.4 kB / 470.3 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.08372, allocations: 7.984 kB / 470.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.08383, allocations: 12 kB / 470.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.08384, allocations: 4.312 kB / 470.3 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.08386, allocations: 12 kB / 470.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.08387, allocations: 0 / 470.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.08387, allocations: 3.984 kB / 470.3 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003268/0.08421, allocations: 192.9 kB / 470.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.988e-05/0.08427, allocations: 92.91 kB / 470.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.0843, allocations: 4 kB / 470.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.266e-05/0.08437, allocations: 4 kB / 470.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.965e-05/0.08441, allocations: 3.984 kB / 470.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.08443, allocations: 4 kB / 470.6 MB, free: 5.855 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001645/0.0846, allocations: 205.7 kB / 470.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08461, allocations: 0 / 470.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.08486, allocations: 47.83 kB / 470.9 MB, free: 5.609 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001337/0.0862, allocations: 1.03 MB / 471.9 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.08644, allocations: 91.84 kB / 472 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.08645, allocations: 0 / 472 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.63e-05/0.08654, allocations: 39.92 kB / 472 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.08685, allocations: 41.33 kB / 472.1 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.08909, allocations: 2.161 MB / 474.2 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.08938, allocations: 0.7474 MB / 475 MB, free: 1.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.402e-05/0.08947, allocations: 17.42 kB / 475 MB, free: 1.488 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.466e-05/0.08957, allocations: 63.41 kB / 475 MB, free: 1.43 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.08958, allocations: 0 / 475 MB, free: 1.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01577/0.1054, allocations: 4.13 MB / 479.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.1056, allocations: 221.2 kB / 479.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/1.857, allocations: 0 / 479.4 MB, free: 13.14 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)