Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 184.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008837/0.0008837, allocations: 101.8 kB / 292.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3113/0.3113, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003182, allocations: 8 kB / 459.9 MB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3332, allocations: 61.9 MB / 0.5096 GB, free: 38.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1094/0.4427, allocations: 88.07 MB / 0.5956 GB, free: 7.074 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.4429, allocations: 75.95 kB / 0.5956 GB, free: 7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01678/0.4597, allocations: 6.44 MB / 0.6019 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4598, allocations: 0 / 0.6019 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.4598, allocations: 8 kB / 0.6019 GB, free: 0.5195 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.000912/0.4607, allocations: 0.6085 MB / 0.6025 GB, free: 15.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.4608, allocations: 8.562 kB / 0.6025 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.206e-05/0.4609, allocations: 39.53 kB / 0.6026 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.4612, allocations: 279.3 kB / 0.6028 GB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.4612, allocations: 29 kB / 0.6029 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.629e-05/0.4613, allocations: 39.91 kB / 0.6029 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006174/0.4619, allocations: 387.4 kB / 0.6033 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.4619, allocations: 4 kB / 0.6033 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.462, allocations: 12 kB / 0.6033 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.462, allocations: 15.98 kB / 0.6033 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004893/0.4625, allocations: 260.4 kB / 0.6035 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.4639, allocations: 1.097 MB / 0.6046 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005407/0.4645, allocations: 363.4 kB / 0.605 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.4645, allocations: 4 kB / 0.605 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.4646, allocations: 50.42 kB / 0.605 GB, free: 13.15 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.4646, allocations: 0 / 0.605 GB, free: 13.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=57): time 0.003936/0.4685, allocations: 2.482 MB / 0.6074 GB, free: 10.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.751e-05/0.4686, allocations: 106.8 kB / 0.6075 GB, free: 10.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.4689, allocations: 209.8 kB / 0.6077 GB, free: 10.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.4689, allocations: 41.64 kB / 0.6078 GB, free: 10.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.469, allocations: 176.7 kB / 0.608 GB, free: 9.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.4692, allocations: 197.1 kB / 0.6081 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.4692, allocations: 12 kB / 0.6082 GB, free: 9.633 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4694, allocations: 346.8 kB / 0.6085 GB, free: 9.285 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.4696, allocations: 137 kB / 0.6086 GB, free: 9.152 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.47, allocations: 235.8 kB / 0.6088 GB, free: 8.883 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.4703, allocations: 163.9 kB / 0.609 GB, free: 8.723 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4703, allocations: 0 / 0.609 GB, free: 8.723 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009982/0.4713, allocations: 0.5696 MB / 0.6096 GB, free: 8.137 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.4713, allocations: 11.94 kB / 0.6096 GB, free: 8.125 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.4713, allocations: 192 / 0.6096 GB, free: 8.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003813/0.4717, allocations: 126.6 kB / 0.6097 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003747/0.4721, allocations: 99.88 kB / 0.6098 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003919/0.4761, allocations: 4.712 MB / 0.6144 GB, free: 2.785 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.4763, allocations: 23.98 kB / 0.6144 GB, free: 2.762 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/0.4763, allocations: 20 kB / 0.6144 GB, free: 2.742 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002121/0.4766, allocations: 165.7 kB / 0.6146 GB, free: 2.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.834e-05/0.4767, allocations: 39.69 kB / 0.6146 GB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.401e-05/0.4768, allocations: 54.11 kB / 0.6147 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.4768, allocations: 4 kB / 0.6147 GB, free: 2.477 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.4768, allocations: 4 kB / 0.6147 GB, free: 2.473 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.4768, allocations: 7.938 kB / 0.6147 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.4788, allocations: 1.344 MB / 0.616 GB, free: 1.047 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.4788, allocations: 4 kB / 0.616 GB, free: 1.043 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004151/0.4793, allocations: 103.9 kB / 0.6161 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002716/0.4795, allocations: 94.5 kB / 0.6162 GB, free: 0.8398 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/0.4796, allocations: 12 kB / 0.6162 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003114/0.4827, allocations: 4.151 MB / 0.6203 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4827, allocations: 4.031 kB / 0.6203 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.4841, allocations: 0.9954 MB / 0.6212 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.4842, allocations: 116.6 kB / 0.6213 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.4843, allocations: 12.06 kB / 0.6214 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.4845, allocations: 27.94 kB / 0.6214 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.4846, allocations: 47.88 kB / 0.6214 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.4847, allocations: 12 kB / 0.6214 GB, free: 10.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001865/0.4849, allocations: 178 kB / 0.6216 GB, free: 10.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4849, allocations: 0 / 0.6216 GB, free: 10.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008005/0.4857, allocations: 120 kB / 0.6217 GB, free: 10.69 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * 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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002067/0.4859, allocations: 111.2 kB / 0.6218 GB, free: 10.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.4873, allocations: 0.7731 MB / 0.6226 GB, free: 9.754 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4873, allocations: 0 / 0.6226 GB, free: 9.754 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007574/0.4881, allocations: 0.5797 MB / 0.6231 GB, free: 9.137 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004802/0.4885, allocations: 48.28 kB / 0.6232 GB, free: 9.094 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.4904, allocations: 1.312 MB / 0.6245 GB, free: 7.746 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.4909, allocations: 0.828 MB / 0.6253 GB, free: 6.891 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001271/0.491, allocations: 31.28 kB / 0.6253 GB, free: 6.855 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.4911, allocations: 35.42 kB / 0.6253 GB, free: 6.82 MB / 442.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4911, allocations: 0 / 0.6253 GB, free: 6.82 MB / 442.7 MB Notification: Performance of Templates: time 0.007594/0.4987, allocations: 4.013 MB / 0.6293 GB, free: 2.82 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches