Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001186/0.001186, allocations: 187 kB / 19.34 MB, free: 3.641 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.362/1.362, allocations: 222.9 MB / 243 MB, free: 15.09 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.2177/0.2177, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 64.34 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1348, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005465/0.1403, allocations: 2.811 MB / 473.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.1415, allocations: 0.7011 MB / 474.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.1417, allocations: 11.94 kB / 474.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.1419, allocations: 59.44 kB / 474.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.1421, allocations: 122.8 kB / 474.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.1424, allocations: 91.88 kB / 474.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004132/0.1428, allocations: 437.9 kB / 474.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.1431, allocations: 145.5 kB / 475.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/0.1433, allocations: 163.4 kB / 475.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.1436, allocations: 175.2 kB / 475.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.199e-05/0.1437, allocations: 35.94 kB / 475.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.052e-05/0.1438, allocations: 32 kB / 475.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.1439, allocations: 75.7 kB / 475.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.1441, allocations: 203 kB / 475.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.1445, allocations: 426.5 kB / 476.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.1445, allocations: 0 / 476.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1445, allocations: 4 kB / 476.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.1445, allocations: 0 / 476.2 MB, free: 8.18 MB / 350.1 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.001114/0.1457, allocations: 0.6435 MB / 476.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1457, allocations: 11.97 kB / 476.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.1458, allocations: 40.47 kB / 476.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.1462, allocations: 280.4 kB / 477.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.1463, allocations: 33.38 kB / 477.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.89e-05/0.1464, allocations: 40.28 kB / 477.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007678/0.1472, allocations: 402.4 kB / 477.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.1472, allocations: 7.906 kB / 477.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.139e-05/0.1473, allocations: 16 kB / 477.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.1473, allocations: 12 kB / 477.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.1477, allocations: 215.7 kB / 477.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.1503, allocations: 1.707 MB / 479.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006586/0.151, allocations: 270.3 kB / 479.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001894/0.1512, allocations: 94.08 kB / 479.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.1513, allocations: 8 kB / 479.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.1513, allocations: 42.5 kB / 480 MB, free: 4.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.733e-06/0.1513, allocations: 0 / 480 MB, free: 4.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007681/0.1521, allocations: 269.7 kB / 480.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001943/0.1523, allocations: 213.6 kB / 480.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.1526, allocations: 274.9 kB / 480.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.1527, allocations: 29.7 kB / 480.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.1529, allocations: 239.4 kB / 481 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.1531, allocations: 114.4 kB / 481.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.1532, allocations: 102.3 kB / 481.2 MB, free: 2.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002468/0.1535, allocations: 350.7 kB / 481.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.1537, allocations: 101.2 kB / 481.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005518/0.1543, allocations: 416.9 kB / 482 MB, free: 1.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007622/0.155, allocations: 0.5784 MB / 482.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/0.1551, allocations: 4 kB / 482.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008824/0.1559, allocations: 0.5241 MB / 483.1 MB, free: 484 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.156, allocations: 12 kB / 483.1 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/0.156, allocations: 12 kB / 483.1 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.659e-05/0.1561, allocations: 16.78 kB / 483.2 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004647/0.1565, allocations: 159.7 kB / 483.3 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.717e-05/0.1566, allocations: 19.94 kB / 483.3 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.1569, allocations: 67.36 kB / 483.4 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.665e-05/0.1569, allocations: 28 kB / 483.4 MB, free: 168 kB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000219/0.1572, allocations: 181.6 kB / 483.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.1573, allocations: 31.62 kB / 483.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.924e-05/0.1574, allocations: 33.78 kB / 483.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.1574, allocations: 4 kB / 483.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.1575, allocations: 8 kB / 483.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.1575, allocations: 3.984 kB / 483.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.1589, allocations: 0.6514 MB / 484.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1589, allocations: 0 / 484.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.1593, allocations: 87.89 kB / 484.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.1594, allocations: 4 kB / 484.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.1594, allocations: 16.05 kB / 484.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.277e-06/0.1594, allocations: 7.938 kB / 484.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.1594, allocations: 4 kB / 484.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009391/0.1604, allocations: 0.8259 MB / 485.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.1605, allocations: 104.8 kB / 485.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.1606, allocations: 20 kB / 485.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003717/0.1609, allocations: 11.92 kB / 485.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.161, allocations: 31.91 kB / 485.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.1611, allocations: 12 kB / 485.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001932/0.1613, allocations: 182 kB / 485.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1613, allocations: 0 / 485.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007627/0.162, allocations: 103.8 kB / 485.7 MB, free: 13.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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.0001755/0.1622, allocations: 114.8 kB / 485.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005663/0.1628, allocations: 294.5 kB / 486.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.1628, allocations: 4 kB / 486.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.163, allocations: 91.77 kB / 486.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009531/0.1639, allocations: 69.53 kB / 486.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.1661, allocations: 1.529 MB / 487.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.1665, allocations: 0.7989 MB / 488.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.1666, allocations: 47.09 kB / 488.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.862e-05/0.1667, allocations: 27.44 kB / 488.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1667, allocations: 0 / 488.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of Templates: time 0.006286/0.173, allocations: 2.919 MB / 491.6 MB, free: 7.785 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches