Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestSpeed.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009864/0.009864, allocations: 165.8 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.717/1.717, allocations: 170.8 MB / 186.6 MB, free: 1.133 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002025/0.002025, allocations: 111.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5868/0.5868, allocations: 38.05 MB / 303.7 MB, free: 42.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004684/0.0004684, allocations: 8 kB / 363 MB, free: 5.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 48.71 MB / 411.7 MB, free: 4.723 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4203/0.5347, allocations: 76.24 MB / 487.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.5349, allocations: 58.42 kB / 488 MB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01944/0.5544, allocations: 4.714 MB / 492.7 MB, free: 7.152 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5545, allocations: 0 / 492.7 MB, free: 7.152 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.254e-05/0.5545, allocations: 4 kB / 492.7 MB, free: 7.148 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009888/0.5555, allocations: 0.5559 MB / 493.3 MB, free: 6.566 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.5556, allocations: 8.031 kB / 493.3 MB, free: 6.559 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.5556, allocations: 56.05 kB / 493.3 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.932e-05/0.5557, allocations: 31.62 kB / 493.3 MB, free: 6.477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.556, allocations: 265.6 kB / 493.6 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.5561, allocations: 14.25 kB / 493.6 MB, free: 6.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.18e-05/0.5562, allocations: 32.16 kB / 493.7 MB, free: 6.168 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006465/0.5568, allocations: 282.4 kB / 493.9 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.021e-05/0.5569, allocations: 7.891 kB / 493.9 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.5569, allocations: 11 kB / 493.9 MB, free: 5.922 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.5569, allocations: 8 kB / 494 MB, free: 5.914 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.5576, allocations: 204.1 kB / 494.2 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.5596, allocations: 1.317 MB / 495.5 MB, free: 4.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005818/0.5602, allocations: 250.6 kB / 495.7 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.5603, allocations: 4 kB / 495.7 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.5603, allocations: 50.66 kB / 495.8 MB, free: 4.191 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 3.587e-06/0.5603, allocations: 0 / 495.8 MB, free: 4.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.003731/0.5641, allocations: 1.624 MB / 497.4 MB, free: 2.516 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.5642, allocations: 139.8 kB / 497.5 MB, free: 2.352 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002453/0.5644, allocations: 204.3 kB / 497.7 MB, free: 2.176 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.5645, allocations: 28.77 kB / 497.8 MB, free: 2.145 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.89e-05/0.5646, allocations: 176.8 kB / 497.9 MB, free: 1.996 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.589e-05/0.5647, allocations: 115.7 kB / 498 MB, free: 1.898 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.5647, allocations: 10.06 kB / 498.1 MB, free: 1.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.5648, allocations: 332.8 kB / 498.4 MB, free: 1.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004383/0.5653, allocations: 113 kB / 498.5 MB, free: 1.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/0.5658, allocations: 247.5 kB / 498.7 MB, free: 1.215 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004865/0.5663, allocations: 149.5 kB / 498.9 MB, free: 1.109 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.5663, allocations: 4 kB / 498.9 MB, free: 1.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001207/0.5675, allocations: 421.6 kB / 499.3 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.5675, allocations: 8.75 kB / 499.3 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.5676, allocations: 4 kB / 499.3 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.715e-05/0.5676, allocations: 8 kB / 499.3 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/0.5683, allocations: 107.4 kB / 499.4 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.5683, allocations: 15.88 kB / 499.4 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003748/0.5687, allocations: 33.8 kB / 499.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.536e-05/0.5688, allocations: 19.8 kB / 499.5 MB, free: 0.582 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.569, allocations: 156.1 kB / 499.6 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.5691, allocations: 34.72 kB / 499.7 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.054e-05/0.5692, allocations: 32.7 kB / 499.7 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.5693, allocations: 4 kB / 499.7 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.5693, allocations: 4 kB / 499.7 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.5693, allocations: 0 / 499.7 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002268/0.5716, allocations: 1.006 MB / 0.489 GB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5716, allocations: 4.062 kB / 0.489 GB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007433/0.5724, allocations: 83.89 kB / 0.4891 GB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.42e-05/0.5724, allocations: 4 kB / 0.4891 GB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-05/0.5724, allocations: 14.8 kB / 0.4891 GB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.178e-05/0.5725, allocations: 8.328 kB / 0.4891 GB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/0.5725, allocations: 4 kB / 0.4891 GB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.5743, allocations: 0.8223 MB / 0.4899 GB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.5745, allocations: 119.4 kB / 0.49 GB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.11e-05/0.5746, allocations: 7.188 kB / 0.49 GB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004588/0.5751, allocations: 29.92 kB / 0.49 GB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.544e-05/0.5752, allocations: 23.05 kB / 0.4901 GB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/0.5752, allocations: 11.98 kB / 0.4901 GB, free: 14.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002308/0.5755, allocations: 158.7 kB / 0.4902 GB, free: 14.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5755, allocations: 0 / 0.4902 GB, free: 14.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007058/0.5762, allocations: 73.94 kB / 0.4903 GB, free: 14.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002327/0.5785, allocations: 1.711 MB / 0.492 GB, free: 12.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.5798, allocations: 301.5 kB / 0.4923 GB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5798, allocations: 0 / 0.4923 GB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005227/0.5803, allocations: 143.7 kB / 0.4924 GB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006691/0.581, allocations: 39.89 kB / 0.4924 GB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006573/0.5876, allocations: 5.03 MB / 0.4973 GB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005004/0.5882, allocations: 0.7761 MB / 0.4981 GB, free: 6.375 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002744/0.5884, allocations: 38.94 kB / 0.4981 GB, free: 6.336 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.5887, allocations: 90.41 kB / 0.4982 GB, free: 6.309 MB / 346.7 MB Notification: Performance of SimCode: time 1.133e-06/0.5887, allocations: 0 / 0.4982 GB, free: 6.309 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.6166, allocations: 4.752 MB / 0.5029 GB, free: 1.648 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003716/0.6171, allocations: 162.6 kB / 0.503 GB, free: 1.41 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.6/3.217, allocations: 0 / 0.503 GB, free: 1.41 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat