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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002155/0.002155, 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.002477/0.002477, 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 2.328/2.328, allocations: 222.9 MB / 242.4 MB, free: 15.47 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.3309/0.3309, allocations: 44.18 MB / 336.8 MB, free: 2.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.001751, allocations: 60.62 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1464, allocations: 60.82 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.006094/0.1525, allocations: 2.866 MB / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.1543, allocations: 0.709 MB / 472.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003653/0.1547, allocations: 11.94 kB / 472.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.155, allocations: 43.62 kB / 472.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004577/0.1555, allocations: 107.2 kB / 472.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.156, allocations: 71.94 kB / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006742/0.1566, allocations: 434.3 kB / 473.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004114/0.1571, allocations: 159 kB / 473.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003577/0.1574, allocations: 163.3 kB / 473.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003484/0.1578, allocations: 179.2 kB / 473.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.168e-05/0.1579, allocations: 28 kB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.158, allocations: 24 kB / 473.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.411e-05/0.1581, allocations: 79.62 kB / 474 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.1584, allocations: 194.9 kB / 474.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004398/0.1588, allocations: 323.5 kB / 474.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1589, allocations: 8 kB / 474.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1589, allocations: 0 / 474.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.1589, allocations: 0 / 474.5 MB, free: 9.457 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001575/0.1605, allocations: 0.6668 MB / 475.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.1606, allocations: 12.03 kB / 475.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.1607, allocations: 44.38 kB / 475.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.1612, allocations: 288.6 kB / 475.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.1612, allocations: 25.38 kB / 475.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.159e-05/0.1613, allocations: 40.38 kB / 475.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009871/0.1623, allocations: 397.2 kB / 476 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.1624, allocations: 3.906 kB / 476 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.815e-05/0.1624, allocations: 16 kB / 476 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.1625, allocations: 8 kB / 476 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007706/0.1633, allocations: 252.4 kB / 476.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.1656, allocations: 1.1 MB / 477.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008001/0.1664, allocations: 350.4 kB / 477.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.1669, allocations: 179.2 kB / 477.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.479e-05/0.1669, allocations: 15.92 kB / 477.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.167, allocations: 42.56 kB / 477.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 3.376e-06/0.167, allocations: 0 / 477.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.005637/0.1726, allocations: 2.438 MB / 480.4 MB, free: 3.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.228e-05/0.1727, allocations: 110.8 kB / 480.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.1731, allocations: 238.6 kB / 480.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.1732, allocations: 37.7 kB / 480.7 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.1733, allocations: 180.7 kB / 480.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.1735, allocations: 201 kB / 481.1 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.1737, allocations: 82.25 kB / 481.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1739, allocations: 354.7 kB / 481.5 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000387/0.1743, allocations: 129.1 kB / 481.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004785/0.1748, allocations: 231.8 kB / 481.9 MB, free: 1.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008921/0.1757, allocations: 405.9 kB / 482.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1757, allocations: 4 kB / 482.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001496/0.1772, allocations: 0.5578 MB / 482.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.1773, allocations: 10.66 kB / 482.9 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.1773, allocations: 7.984 kB / 482.9 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000527/0.1778, allocations: 114.5 kB / 483 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005367/0.1784, allocations: 103.8 kB / 483.1 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005754/0.1842, allocations: 4.68 MB / 487.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.1846, allocations: 19.98 kB / 487.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.026e-05/0.1847, allocations: 20 kB / 487.8 MB, free: 11.14 MB / 366.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003174/0.185, allocations: 165.8 kB / 488 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.1852, allocations: 35.56 kB / 488 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.1853, allocations: 50.17 kB / 488.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.1853, allocations: 4 kB / 488.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/0.1854, allocations: 4 kB / 488.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.1854, allocations: 3.984 kB / 488.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003115/0.1885, allocations: 1.331 MB / 489.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.1885, allocations: 4 kB / 489.4 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000656/0.1892, allocations: 103.9 kB / 489.5 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004487/0.1897, allocations: 98.5 kB / 489.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.1897, allocations: 12 kB / 489.6 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004467/0.1942, allocations: 4.108 MB / 493.7 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/0.1943, allocations: 12.09 kB / 493.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.1962, allocations: 0.9229 MB / 494.7 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.1964, allocations: 108.8 kB / 494.8 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.198e-05/0.1965, allocations: 16 kB / 494.8 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.1969, allocations: 11.98 kB / 494.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.1971, allocations: 47.94 kB / 494.8 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.1971, allocations: 16 kB / 494.8 MB, free: 3.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002356/0.1974, allocations: 170 kB / 495 MB, free: 3.383 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1974, allocations: 0 / 495 MB, free: 3.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001154/0.1985, allocations: 124 kB / 495.1 MB, free: 3.262 MB / 366.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002037/0.1988, allocations: 115.1 kB / 495.2 MB, free: 3.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001986/0.2008, allocations: 0.781 MB / 496 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2008, allocations: 0 / 496 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.2019, allocations: 0.576 MB / 496.6 MB, free: 1.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.203, allocations: 60.94 kB / 496.7 MB, free: 1.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.2058, allocations: 1.276 MB / 497.9 MB, free: 328 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007149/0.2066, allocations: 0.8124 MB / 498.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.2067, allocations: 39.42 kB / 498.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.362e-06/0.2067, allocations: 0 / 498.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of Templates: time 0.01837/0.2251, allocations: 9.278 MB / 0.4962 GB, free: 6.16 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches