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.0007503/0.0007502, allocations: 95.58 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.000857/0.000857, allocations: 175.3 kB / 18.26 MB, free: 5.52 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.453/1.453, allocations: 223.2 MB / 242.3 MB, free: 248 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.2076/0.2076, allocations: 44.25 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005085/0.0005084, allocations: 8 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1647, allocations: 61.92 MB / 472.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002821/0.1676, allocations: 1.362 MB / 473.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004988/0.1681, allocations: 115.6 kB / 473.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.1683, allocations: 0 / 473.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.099e-05/0.1683, allocations: 11.92 kB / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.1685, allocations: 31.75 kB / 473.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001688/0.1687, allocations: 19.98 kB / 473.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.1689, allocations: 123.4 kB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.1691, allocations: 32.95 kB / 473.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.1693, allocations: 35.81 kB / 474 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.1694, allocations: 47.78 kB / 474 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.227e-05/0.1695, allocations: 8 kB / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.599e-05/0.1695, allocations: 8 kB / 474 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.778e-05/0.1695, allocations: 23.91 kB / 474.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.1697, allocations: 77.44 kB / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.1698, allocations: 111.8 kB / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.752e-05/0.1699, allocations: 0 / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1699, allocations: 3.938 kB / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1699, allocations: 0 / 474.2 MB, free: 11.34 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006399/0.1705, allocations: 387.4 kB / 474.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.1706, allocations: 12.03 kB / 474.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.732e-05/0.1707, allocations: 16.78 kB / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.171, allocations: 196.2 kB / 474.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.171, allocations: 8.609 kB / 474.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.506e-05/0.1711, allocations: 20.36 kB / 474.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003248/0.1714, allocations: 129.5 kB / 475 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.1715, allocations: 4.094 kB / 475 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.1715, allocations: 11.94 kB / 475 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.1715, allocations: 0 / 475 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.1717, allocations: 63.95 kB / 475.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.1728, allocations: 0.5411 MB / 475.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.173, allocations: 89.16 kB / 475.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.989e-05/0.1731, allocations: 21.72 kB / 475.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.1731, allocations: 3.938 kB / 475.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.1731, allocations: 42.64 kB / 475.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.743e-06/0.1731, allocations: 4 kB / 475.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007475/0.1739, allocations: 293.4 kB / 476.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/0.174, allocations: 81.11 kB / 476.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.1741, allocations: 121.8 kB / 476.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1742, allocations: 29.7 kB / 476.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1743, allocations: 127.6 kB / 476.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.1743, allocations: 31.55 kB / 476.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.763e-05/0.1744, allocations: 21.66 kB / 476.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1745, allocations: 322.8 kB / 476.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.121e-05/0.1746, allocations: 27.98 kB / 476.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.1747, allocations: 84.58 kB / 476.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002153/0.175, allocations: 120.8 kB / 477 MB, free: 8.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.175, allocations: 4 kB / 477 MB, free: 8.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003855/0.1754, allocations: 163 kB / 477.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/0.1754, allocations: 8.25 kB / 477.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1755, allocations: 7.938 kB / 477.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/0.1757, allocations: 45.64 kB / 477.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.1758, allocations: 23.92 kB / 477.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.1783, allocations: 2.544 MB / 479.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.968e-05/0.1784, allocations: 15.84 kB / 479.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.1784, allocations: 4 kB / 479.8 MB, free: 5.125 MB / 350.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.000132/0.1785, allocations: 125.8 kB / 479.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.1786, allocations: 4 kB / 479.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/0.1787, allocations: 15.98 kB / 480 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1787, allocations: 4 kB / 480 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1787, allocations: 0 / 480 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1787, allocations: 0 / 480 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003513/0.179, allocations: 209.4 kB / 480.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1791, allocations: 0 / 480.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.1792, allocations: 19.94 kB / 480.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/0.1793, allocations: 29.8 kB / 480.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.1794, allocations: 7.984 kB / 480.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002165/0.1815, allocations: 2.529 MB / 482.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1815, allocations: 3.938 kB / 482.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004419/0.182, allocations: 316.5 kB / 483.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.508e-05/0.1821, allocations: 85.02 kB / 483.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.1821, allocations: 8.031 kB / 483.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.1822, allocations: 0 / 483.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.1823, allocations: 4 kB / 483.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.1823, allocations: 8 kB / 483.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.661e-05/0.1824, allocations: 95.64 kB / 483.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1824, allocations: 4 kB / 483.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004917/0.1829, allocations: 35.94 kB / 483.3 MB, free: 1.266 MB / 350.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.0001908/0.1831, allocations: 107.2 kB / 483.4 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006114/0.1837, allocations: 309.7 kB / 483.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.1837, allocations: 0 / 483.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.1841, allocations: 253.6 kB / 484 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006817/0.1848, allocations: 34.14 kB / 484 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.1861, allocations: 0.5689 MB / 484.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.1866, allocations: 0.7161 MB / 485.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.329e-05/0.1866, allocations: 4.891 kB / 485.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.201e-05/0.1867, allocations: 11.44 kB / 485.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1867, allocations: 0 / 485.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of Templates: time 0.005537/0.1922, allocations: 1.447 MB / 486.7 MB, free: 13.71 MB / 366.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