Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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/Complex 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.0012, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 183.8 kB / 18.71 MB, free: 4.348 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.497/1.497, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.238/0.238, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 59.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4517/0.453, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004756/0.4578, allocations: 2.623 MB / 0.5214 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.4589, allocations: 0.6501 MB / 0.5221 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.4591, allocations: 9.531 kB / 0.5221 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.4593, allocations: 37.59 kB / 0.5221 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.4595, allocations: 85.47 kB / 0.5222 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.4598, allocations: 86.44 kB / 0.5223 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.4601, allocations: 340.1 kB / 0.5226 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.4603, allocations: 77.77 kB / 0.5227 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.4605, allocations: 129.4 kB / 0.5228 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.4607, allocations: 136.5 kB / 0.5229 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.832e-05/0.4608, allocations: 22.09 kB / 0.5229 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.046e-05/0.4608, allocations: 21.88 kB / 0.523 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.295e-05/0.4609, allocations: 49.53 kB / 0.523 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.461, allocations: 148.5 kB / 0.5232 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.4614, allocations: 305.9 kB / 0.5235 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4614, allocations: 4 kB / 0.5235 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4614, allocations: 1.312 kB / 0.5235 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.4614, allocations: 0 / 0.5235 GB, free: 0.5625 MB / 382.1 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.0008098/0.4622, allocations: 0.5799 MB / 0.524 GB, free: 76 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.4623, allocations: 10.31 kB / 0.524 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.681e-05/0.4624, allocations: 32.02 kB / 0.5241 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.4627, allocations: 281 kB / 0.5243 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.4627, allocations: 18.25 kB / 0.5243 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.4628, allocations: 31.22 kB / 0.5244 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005272/0.4633, allocations: 281.3 kB / 0.5246 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.4634, allocations: 7.625 kB / 0.5247 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.4634, allocations: 9.531 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.4634, allocations: 6.75 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.4639, allocations: 179.4 kB / 0.5248 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.4657, allocations: 1.31 MB / 0.5261 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.4661, allocations: 236.4 kB / 0.5263 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.4664, allocations: 105.2 kB / 0.5264 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.4664, allocations: 10.67 kB / 0.5265 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.4664, allocations: 38.09 kB / 0.5265 GB, free: 14.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.573e-06/0.4664, allocations: 0 / 0.5265 GB, free: 14.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002511/0.4689, allocations: 1.575 MB / 0.528 GB, free: 12.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.469, allocations: 136.5 kB / 0.5282 GB, free: 12.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.4693, allocations: 218.7 kB / 0.5284 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.4693, allocations: 32.08 kB / 0.5284 GB, free: 12.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.4695, allocations: 180.7 kB / 0.5286 GB, free: 12.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.523e-05/0.4695, allocations: 117.6 kB / 0.5287 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.4697, allocations: 67.02 kB / 0.5287 GB, free: 12.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4698, allocations: 341.1 kB / 0.5291 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.47, allocations: 102.5 kB / 0.5292 GB, free: 11.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003352/0.4704, allocations: 236.2 kB / 0.5294 GB, free: 11.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000615/0.471, allocations: 367.7 kB / 0.5297 GB, free: 11.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.471, allocations: 5.312 kB / 0.5298 GB, free: 11.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007428/0.4718, allocations: 400 kB / 0.5301 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.4718, allocations: 6.844 kB / 0.5301 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.4718, allocations: 5.688 kB / 0.5301 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.4718, allocations: 5.781 kB / 0.5301 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.4722, allocations: 104.1 kB / 0.5302 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.4723, allocations: 6.281 kB / 0.5303 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.4725, allocations: 33.12 kB / 0.5303 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.025e-05/0.4725, allocations: 17.66 kB / 0.5303 GB, free: 11.07 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.4727, allocations: 153.3 kB / 0.5304 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.4728, allocations: 29.16 kB / 0.5305 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.806e-05/0.4728, allocations: 36.02 kB / 0.5305 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4729, allocations: 4.188 kB / 0.5305 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.4729, allocations: 5.344 kB / 0.5305 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.4729, allocations: 1.375 kB / 0.5305 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.4745, allocations: 0.9783 MB / 0.5315 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.4745, allocations: 1.062 kB / 0.5315 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.4749, allocations: 74.27 kB / 0.5315 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.4749, allocations: 2.688 kB / 0.5316 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.475, allocations: 16.39 kB / 0.5316 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.867e-06/0.475, allocations: 7.25 kB / 0.5316 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.475, allocations: 1.062 kB / 0.5316 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.4761, allocations: 0.7345 MB / 0.5323 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.876e-05/0.4762, allocations: 104 kB / 0.5324 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.4763, allocations: 11.72 kB / 0.5324 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.4766, allocations: 18.17 kB / 0.5324 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.961e-05/0.4767, allocations: 23.62 kB / 0.5324 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.4767, allocations: 18.48 kB / 0.5325 GB, free: 9.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001625/0.4769, allocations: 158.3 kB / 0.5326 GB, free: 9.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4769, allocations: 0 / 0.5326 GB, free: 9.203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005292/0.4774, allocations: 68.06 kB / 0.5327 GB, free: 9.191 MB / 398.1 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 (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.0001563/0.4776, allocations: 105.5 kB / 0.5328 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000693/0.4783, allocations: 274.3 kB / 0.533 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4783, allocations: 0 / 0.533 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.4786, allocations: 131.1 kB / 0.5332 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006426/0.4793, allocations: 44.8 kB / 0.5332 GB, free: 8.906 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.4807, allocations: 0.868 MB / 0.5341 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.4811, allocations: 0.7778 MB / 0.5348 GB, free: 7.492 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.4812, allocations: 34.83 kB / 0.5348 GB, free: 7.469 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.178e-05/0.4813, allocations: 32.22 kB / 0.5349 GB, free: 7.453 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4813, allocations: 0 / 0.5349 GB, free: 7.453 MB / 398.1 MB Notification: Performance of Templates: time 0.006431/0.4878, allocations: 2.496 MB / 0.5373 GB, free: 6.219 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches