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.0007638/0.0007638, allocations: 97.28 kB / 17.35 MB, free: 6.371 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.0008964/0.0008964, allocations: 172.1 kB / 18.25 MB, free: 5.527 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.469/1.469, allocations: 223.2 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2119/0.2119, allocations: 44.25 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003288, allocations: 8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1485, allocations: 61.91 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003089/0.1516, allocations: 2.492 MB / 474.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1528, allocations: 0.6856 MB / 475.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.153, allocations: 15.88 kB / 475.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.1532, allocations: 39.69 kB / 475.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.1534, allocations: 111.1 kB / 475.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.1537, allocations: 75.92 kB / 475.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000392/0.1541, allocations: 410 kB / 476.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.1543, allocations: 113.1 kB / 476.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.1545, allocations: 151.4 kB / 476.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.1548, allocations: 159.2 kB / 476.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.1548, allocations: 20 kB / 476.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.599e-05/0.1549, allocations: 20 kB / 476.5 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.177e-05/0.155, allocations: 67.69 kB / 476.6 MB, free: 9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.1552, allocations: 204.8 kB / 476.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003729/0.1555, allocations: 402.7 kB / 477.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1556, allocations: 0 / 477.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1556, allocations: 0 / 477.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1556, allocations: 0 / 477.2 MB, free: 8.398 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.0008566/0.1564, allocations: 0.5851 MB / 477.8 MB, free: 7.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.1565, allocations: 8.031 kB / 477.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.716e-05/0.1566, allocations: 40.47 kB / 477.8 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.1569, allocations: 284.4 kB / 478.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.1569, allocations: 29.38 kB / 478.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.691e-05/0.157, allocations: 36.38 kB / 478.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006413/0.1576, allocations: 402.4 kB / 478.5 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.1577, allocations: 11.91 kB / 478.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.74e-05/0.1577, allocations: 12 kB / 478.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.1578, allocations: 8 kB / 478.6 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.1582, allocations: 236.8 kB / 478.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.1606, allocations: 1.734 MB / 480.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004575/0.1611, allocations: 266.3 kB / 480.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.1613, allocations: 98.06 kB / 480.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1613, allocations: 12 kB / 480.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.1613, allocations: 38.5 kB / 480.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.1613, allocations: 0 / 480.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.000702/0.162, allocations: 277.6 kB / 481.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.1622, allocations: 217.5 kB / 481.4 MB, free: 3.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.1625, allocations: 270.9 kB / 481.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.1625, allocations: 37.8 kB / 481.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.1627, allocations: 231.3 kB / 482 MB, free: 3.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.1628, allocations: 118.5 kB / 482.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-05/0.1629, allocations: 49.69 kB / 482.1 MB, free: 3.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.1631, allocations: 350.7 kB / 482.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.1633, allocations: 105.2 kB / 482.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.1638, allocations: 436.8 kB / 483 MB, free: 2.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007005/0.1645, allocations: 0.578 MB / 483.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.443e-06/0.1645, allocations: 4 kB / 483.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008929/0.1654, allocations: 0.5319 MB / 484.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.1654, allocations: 8 kB / 484.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.1654, allocations: 12.84 kB / 484.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.1655, allocations: 16 kB / 484.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004142/0.1659, allocations: 155.7 kB / 484.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.1659, allocations: 23.92 kB / 484.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.1662, allocations: 63.34 kB / 484.4 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.1663, allocations: 32 kB / 484.4 MB, free: 428 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.0001803/0.1664, allocations: 185.5 kB / 484.6 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.1666, allocations: 31.72 kB / 484.6 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.937e-05/0.1667, allocations: 37.78 kB / 484.7 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1667, allocations: 4 kB / 484.7 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1667, allocations: 0 / 484.7 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1667, allocations: 4 kB / 484.7 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.168, allocations: 0.6518 MB / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.168, allocations: 4 kB / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004241/0.1684, allocations: 96 kB / 485.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.1684, allocations: 4 kB / 485.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.1685, allocations: 8.188 kB / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.1685, allocations: 7.938 kB / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1685, allocations: 4 kB / 485.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009059/0.1694, allocations: 0.8492 MB / 486.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.478e-05/0.1695, allocations: 108.8 kB / 486.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.1695, allocations: 8 kB / 486.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.1699, allocations: 15.94 kB / 486.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.17, allocations: 27.91 kB / 486.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.17, allocations: 12 kB / 486.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.1701, allocations: 182 kB / 486.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1701, allocations: 0 / 486.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006977/0.1708, allocations: 99.84 kB / 486.7 MB, free: 13.97 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.000122/0.171, allocations: 107.7 kB / 486.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005384/0.1715, allocations: 297.9 kB / 487.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1715, allocations: 0 / 487.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.1717, allocations: 99.77 kB / 487.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.1728, allocations: 77.39 kB / 487.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/0.1762, allocations: 1.933 MB / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005789/0.1768, allocations: 0.7914 MB / 490 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002915/0.1771, allocations: 47.25 kB / 490.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.565e-05/0.1772, allocations: 31.44 kB / 490.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1772, allocations: 3.938 kB / 490.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of Templates: time 0.009004/0.1862, allocations: 2.738 MB / 492.8 MB, free: 7.793 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/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