Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.phi|J1.w|J3.phi|J3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001265, allocations: 117.2 kB / 17.78 MB, free: 5.277 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.001188/0.001188, allocations: 184.2 kB / 18.71 MB, free: 4.359 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.443/1.443, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2402/0.2402, allocations: 44.19 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 67.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.434, allocations: 60.81 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.004/0.4381, allocations: 1.661 MB / 0.5205 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005721/0.4387, allocations: 110.2 kB / 0.5206 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.4389, allocations: 6.188 kB / 0.5206 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.444e-05/0.439, allocations: 13.3 kB / 0.5206 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.4393, allocations: 38.92 kB / 0.5207 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.4395, allocations: 28.73 kB / 0.5207 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002944/0.4398, allocations: 129.5 kB / 0.5208 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002269/0.44, allocations: 33.58 kB / 0.5208 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.4402, allocations: 53.05 kB / 0.5209 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.4403, allocations: 51.98 kB / 0.5209 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.4404, allocations: 10.12 kB / 0.521 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.258e-05/0.4404, allocations: 12.78 kB / 0.521 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.771e-05/0.4404, allocations: 18.34 kB / 0.521 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.296e-05/0.4405, allocations: 60.23 kB / 0.521 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.4408, allocations: 124.8 kB / 0.5212 GB, free: 2.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4408, allocations: 1.031 kB / 0.5212 GB, free: 2.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4408, allocations: 4 kB / 0.5212 GB, free: 2.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.4408, allocations: 0 / 0.5212 GB, free: 2.082 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005547/0.4414, allocations: 404.1 kB / 0.5215 GB, free: 1.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4414, allocations: 8.625 kB / 0.5216 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.03e-05/0.4415, allocations: 15.39 kB / 0.5216 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.4417, allocations: 193.5 kB / 0.5218 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.4417, allocations: 8.828 kB / 0.5218 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/0.4418, allocations: 16.83 kB / 0.5218 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.442, allocations: 132 kB / 0.5219 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.4421, allocations: 1.312 kB / 0.5219 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.4421, allocations: 9.688 kB / 0.5219 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.4421, allocations: 3.531 kB / 0.5219 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.4423, allocations: 61.08 kB / 0.522 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007522/0.443, allocations: 0.5434 MB / 0.5225 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.4432, allocations: 87.02 kB / 0.5226 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.461e-05/0.4432, allocations: 24.64 kB / 0.5226 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.4432, allocations: 6.25 kB / 0.5226 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.4433, allocations: 39.84 kB / 0.5227 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.853e-06/0.4433, allocations: 0 / 0.5227 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006542/0.4439, allocations: 300.6 kB / 0.5229 GB, free: 476 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.444, allocations: 79.28 kB / 0.523 GB, free: 380 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.4441, allocations: 119.5 kB / 0.5231 GB, free: 272 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.4441, allocations: 31.08 kB / 0.5232 GB, free: 236 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.351e-05/0.4442, allocations: 118.1 kB / 0.5233 GB, free: 124 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.4442, allocations: 38.95 kB / 0.5233 GB, free: 92 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.314e-05/0.4443, allocations: 32.91 kB / 0.5233 GB, free: 64 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.4444, allocations: 318.6 kB / 0.5236 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.765e-05/0.4445, allocations: 23.66 kB / 0.5237 GB, free: 15.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.4446, allocations: 95.7 kB / 0.5238 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.4448, allocations: 124.3 kB / 0.5239 GB, free: 15.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4448, allocations: 1.125 kB / 0.5239 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000338/0.4452, allocations: 167.7 kB / 0.524 GB, free: 15.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4452, allocations: 12.38 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.4452, allocations: 7.281 kB / 0.5241 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.4454, allocations: 38.16 kB / 0.5241 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.595e-05/0.4456, allocations: 21.2 kB / 0.5241 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.4477, allocations: 2.739 MB / 0.5268 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.952e-05/0.4478, allocations: 14.78 kB / 0.5268 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.4478, allocations: 6.484 kB / 0.5268 GB, free: 12.56 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.4479, allocations: 129.9 kB / 0.5269 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/0.448, allocations: 8.188 kB / 0.5269 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.448, allocations: 14.69 kB / 0.527 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.448, allocations: 1.5 kB / 0.527 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.448, allocations: 2.188 kB / 0.527 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.448, allocations: 0 / 0.527 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.4483, allocations: 199.1 kB / 0.5272 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4483, allocations: 0.8438 kB / 0.5272 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.365e-05/0.4485, allocations: 17.17 kB / 0.5272 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.4486, allocations: 32.39 kB / 0.5272 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.4486, allocations: 9.188 kB / 0.5272 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.4506, allocations: 2.731 MB / 0.5299 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4506, allocations: 2.672 kB / 0.5299 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003737/0.451, allocations: 314.4 kB / 0.5302 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-05/0.4511, allocations: 80.61 kB / 0.5303 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.4511, allocations: 2.094 kB / 0.5303 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.389e-05/0.4512, allocations: 0 / 0.5303 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.795e-05/0.4512, allocations: 11.7 kB / 0.5303 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.4513, allocations: 1.969 kB / 0.5303 GB, free: 8.984 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.603e-05/0.4513, allocations: 96.36 kB / 0.5304 GB, free: 8.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4513, allocations: 3.938 kB / 0.5304 GB, free: 8.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003952/0.4517, allocations: 39.97 kB / 0.5304 GB, free: 8.887 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001354/0.4519, allocations: 98.03 kB / 0.5305 GB, free: 8.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005255/0.4524, allocations: 307.3 kB / 0.5308 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4524, allocations: 0.5 kB / 0.5308 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.4527, allocations: 263 kB / 0.531 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.4532, allocations: 24.94 kB / 0.5311 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000788/0.454, allocations: 470.5 kB / 0.5315 GB, free: 7.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.4543, allocations: 0.706 MB / 0.5322 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.907e-05/0.4543, allocations: 7.078 kB / 0.5322 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.03e-05/0.4544, allocations: 11.56 kB / 0.5322 GB, free: 7.215 MB / 398.1 MB Notification: Performance of SimCode: time 4.4e-07/0.4544, allocations: 4 kB / 0.5322 GB, free: 7.211 MB / 398.1 MB Notification: Performance of Templates: time 0.004916/0.4593, allocations: 1.529 MB / 0.5337 GB, free: 6.738 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches