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.001479/0.001479, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001611/0.001611, allocations: 194 kB / 18.77 MB, free: 4.742 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.984/1.984, allocations: 222.9 MB / 242.5 MB, free: 13.77 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.2983/0.2983, allocations: 44.17 MB / 336.8 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001936, allocations: 69.58 kB / 408.4 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1575, allocations: 60.84 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.00393/0.1615, allocations: 1.698 MB / 470.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003508/0.1619, allocations: 115.7 kB / 471 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.496e-05/0.162, allocations: 3.938 kB / 471 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.493e-05/0.1621, allocations: 11.92 kB / 471 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.1622, allocations: 31.77 kB / 471 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001389/0.1624, allocations: 15.98 kB / 471.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.1626, allocations: 123.4 kB / 471.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.1628, allocations: 36.89 kB / 471.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.473e-05/0.1628, allocations: 39.86 kB / 471.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.422e-05/0.163, allocations: 47.78 kB / 471.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.163, allocations: 11.94 kB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.993e-05/0.163, allocations: 8 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.1631, allocations: 15.92 kB / 471.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.665e-05/0.1632, allocations: 59.73 kB / 471.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.1633, allocations: 91.98 kB / 471.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1633, allocations: 0 / 471.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1634, allocations: 0 / 471.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1634, allocations: 0 / 471.5 MB, free: 12.52 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.0006266/0.164, allocations: 411.4 kB / 471.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1641, allocations: 12.03 kB / 471.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.1641, allocations: 12.75 kB / 471.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.1644, allocations: 196.2 kB / 472.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.1644, allocations: 4.609 kB / 472.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.639e-05/0.1645, allocations: 20.28 kB / 472.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002919/0.1648, allocations: 121.6 kB / 472.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.1648, allocations: 8.125 kB / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.1648, allocations: 7.938 kB / 472.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1648, allocations: 8 kB / 472.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.165, allocations: 55.95 kB / 472.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.166, allocations: 0.5372 MB / 472.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.1662, allocations: 89.16 kB / 472.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.971e-05/0.1663, allocations: 21.72 kB / 473 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.1663, allocations: 7.938 kB / 473 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.1664, allocations: 46.58 kB / 473 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 3.025e-06/0.1664, allocations: 0 / 473 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007704/0.1672, allocations: 293.7 kB / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.1673, allocations: 81.11 kB / 473.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.1674, allocations: 121.8 kB / 473.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.1674, allocations: 29.7 kB / 473.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.416e-05/0.1675, allocations: 127.6 kB / 473.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.1676, allocations: 31.55 kB / 473.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.1677, allocations: 25.72 kB / 473.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1678, allocations: 326.8 kB / 474 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.323e-05/0.1679, allocations: 20 kB / 474.1 MB, free: 9.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.1681, allocations: 96.5 kB / 474.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.1683, allocations: 120.5 kB / 474.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.1684, allocations: 0 / 474.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004799/0.1689, allocations: 171.1 kB / 474.4 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.1689, allocations: 12 kB / 474.4 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.1689, allocations: 4 kB / 474.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/0.1692, allocations: 41.64 kB / 474.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.1694, allocations: 27.92 kB / 474.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/0.1719, allocations: 2.544 MB / 477.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.172, allocations: 15.84 kB / 477.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.172, allocations: 4 kB / 477.1 MB, free: 6.277 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.0001531/0.1722, allocations: 129.7 kB / 477.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.787e-05/0.1723, allocations: 7.906 kB / 477.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.1723, allocations: 15.98 kB / 477.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1723, allocations: 4 kB / 477.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1724, allocations: 0 / 477.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1724, allocations: 0 / 477.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.1727, allocations: 205.5 kB / 477.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1727, allocations: 3.984 kB / 477.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.1729, allocations: 12 kB / 477.5 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001438/0.173, allocations: 33.64 kB / 477.5 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.1731, allocations: 4 kB / 477.5 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002212/0.1753, allocations: 2.533 MB / 480 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.1753, allocations: 0 / 480 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004067/0.1758, allocations: 312.5 kB / 480.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.1758, allocations: 89.02 kB / 480.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.1759, allocations: 0 / 480.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.176, allocations: 4.031 kB / 480.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.176, allocations: 11.94 kB / 480.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.1761, allocations: 4 kB / 480.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.264e-05/0.1762, allocations: 91.27 kB / 480.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1762, allocations: 4 kB / 480.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005556/0.1767, allocations: 39.84 kB / 480.6 MB, free: 2.418 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.0001448/0.1769, allocations: 107.2 kB / 480.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006202/0.1775, allocations: 301.6 kB / 481 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1775, allocations: 0 / 481 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003228/0.1779, allocations: 253.6 kB / 481.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007037/0.1786, allocations: 23.98 kB / 481.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.1799, allocations: 0.5402 MB / 481.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.1804, allocations: 0.7122 MB / 482.5 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.697e-05/0.1804, allocations: 11.44 kB / 482.5 MB, free: 368 kB / 350.1 MB Notification: Performance of SimCode: time 1.173e-06/0.1804, allocations: 0 / 482.5 MB, free: 368 kB / 350.1 MB Notification: Performance of Templates: time 0.005703/0.1861, allocations: 2.428 MB / 484.9 MB, free: 13.93 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/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