Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 183.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008817/0.0008821, allocations: 90.59 kB / 267 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3458/0.3458, allocations: 43.46 MB / 358.6 MB, free: 51.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.757e-05/2.765e-05, allocations: 0 / 425.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 58.84 MB / 484.1 MB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3433/0.4589, allocations: 86.87 MB / 0.5576 GB, free: 16.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.4592, allocations: 71.84 kB / 0.5577 GB, free: 16.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01403/0.4733, allocations: 6.086 MB / 0.5636 GB, free: 13.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4733, allocations: 0 / 0.5636 GB, free: 13.37 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.4733, allocations: 8 kB / 0.5637 GB, free: 13.36 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.000551/0.4739, allocations: 0.5488 MB / 0.5642 GB, free: 12.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.4739, allocations: 8.031 kB / 0.5642 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.689e-05/0.474, allocations: 43.53 kB / 0.5642 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.4742, allocations: 260.5 kB / 0.5645 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.4742, allocations: 27.91 kB / 0.5645 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.069e-05/0.4743, allocations: 40.27 kB / 0.5646 GB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004194/0.4747, allocations: 370.7 kB / 0.5649 GB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.4747, allocations: 16.61 kB / 0.5649 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.4748, allocations: 18.77 kB / 0.5649 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.4748, allocations: 8 kB / 0.5649 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.475, allocations: 200.2 kB / 0.5651 GB, free: 12.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.4766, allocations: 1.722 MB / 0.5668 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/0.4768, allocations: 248.5 kB / 0.5671 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.8e-05/0.4769, allocations: 82.83 kB / 0.5671 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.4769, allocations: 7.984 kB / 0.5671 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.547e-05/0.477, allocations: 47.52 kB / 0.5672 GB, free: 10.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.477, allocations: 0 / 0.5672 GB, free: 10.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.000368/0.4773, allocations: 184.4 kB / 0.5674 GB, free: 10.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.4774, allocations: 218.2 kB / 0.5676 GB, free: 9.812 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.4775, allocations: 244.8 kB / 0.5678 GB, free: 9.621 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.4776, allocations: 28.27 kB / 0.5678 GB, free: 9.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.357e-05/0.4776, allocations: 238.4 kB / 0.5681 GB, free: 9.387 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.842e-05/0.4777, allocations: 121.1 kB / 0.5682 GB, free: 9.289 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.318e-05/0.4777, allocations: 8.562 kB / 0.5682 GB, free: 9.289 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.975e-05/0.4778, allocations: 349.6 kB / 0.5685 GB, free: 8.953 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.4779, allocations: 84.81 kB / 0.5686 GB, free: 8.898 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.4781, allocations: 412.1 kB / 0.569 GB, free: 8.379 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.4783, allocations: 152.2 kB / 0.5691 GB, free: 8.266 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.4783, allocations: 4 kB / 0.5691 GB, free: 8.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0005213/0.4788, allocations: 0.4987 MB / 0.5696 GB, free: 7.844 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.4788, allocations: 13.31 kB / 0.5696 GB, free: 7.832 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.4788, allocations: 12.91 kB / 0.5697 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.4789, allocations: 16 kB / 0.5697 GB, free: 7.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003556/0.4792, allocations: 158 kB / 0.5698 GB, free: 7.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.4793, allocations: 15.94 kB / 0.5698 GB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.4795, allocations: 72.67 kB / 0.5699 GB, free: 7.578 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.4795, allocations: 31.25 kB / 0.5699 GB, free: 7.551 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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 6.351e-05/0.4796, allocations: 145.4 kB / 0.5701 GB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.4797, allocations: 31.62 kB / 0.5701 GB, free: 7.387 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.526e-05/0.4798, allocations: 39.44 kB / 0.5701 GB, free: 7.363 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.4798, allocations: 4 kB / 0.5701 GB, free: 7.359 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.4798, allocations: 4 kB / 0.5701 GB, free: 7.355 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4798, allocations: 7.969 kB / 0.5702 GB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008808/0.4807, allocations: 0.6405 MB / 0.5708 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4807, allocations: 1.562 kB / 0.5708 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/0.4811, allocations: 99.62 kB / 0.5709 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.4811, allocations: 8 kB / 0.5709 GB, free: 6.617 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.4811, allocations: 7.938 kB / 0.5709 GB, free: 6.613 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4812, allocations: 4 kB / 0.5709 GB, free: 6.609 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4812, allocations: 3.938 kB / 0.5709 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.4815, allocations: 0.8949 MB / 0.5718 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/0.4816, allocations: 112.7 kB / 0.5719 GB, free: 5.562 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.4816, allocations: 18.14 kB / 0.5719 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.4819, allocations: 15.8 kB / 0.5719 GB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.482, allocations: 23.72 kB / 0.5719 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.482, allocations: 8 kB / 0.5719 GB, free: 5.512 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.4821, allocations: 179.2 kB / 0.5721 GB, free: 5.367 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4821, allocations: 0 / 0.5721 GB, free: 5.367 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005576/0.4827, allocations: 110 kB / 0.5722 GB, free: 5.273 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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 9.283e-05/0.4828, allocations: 108.6 kB / 0.5723 GB, free: 5.164 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002883/0.4831, allocations: 268 kB / 0.5726 GB, free: 4.953 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4831, allocations: 320 / 0.5726 GB, free: 4.953 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.392e-05/0.4832, allocations: 85.61 kB / 0.5727 GB, free: 4.887 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005456/0.4837, allocations: 57.61 kB / 0.5727 GB, free: 4.848 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.4851, allocations: 1.522 MB / 0.5742 GB, free: 3.332 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000178/0.4853, allocations: 0.804 MB / 0.575 GB, free: 2.504 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000144/0.4855, allocations: 43.25 kB / 0.575 GB, free: 2.461 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.076e-05/0.4855, allocations: 27.44 kB / 0.5751 GB, free: 2.434 MB / 394.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4855, allocations: 4 kB / 0.5751 GB, free: 2.43 MB / 394.7 MB Notification: Performance of Templates: time 0.004543/0.4901, allocations: 2.663 MB / 0.5777 GB, free: 15.8 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches