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.001014/0.001014, allocations: 97.48 kB / 17 MB, free: 6.418 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.001189/0.00119, allocations: 189.4 kB / 17.89 MB, free: 5.945 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.424/1.424, allocations: 223.2 MB / 241.9 MB, free: 224 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.2267/0.2267, allocations: 44.24 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003271/0.0003271, allocations: 13.8 kB / 409.7 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.1575, allocations: 61.93 MB / 471.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.002972/0.1605, allocations: 2.388 MB / 474 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.1616, allocations: 0.6781 MB / 474.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.1618, allocations: 11.94 kB / 474.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.162, allocations: 39.62 kB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.1622, allocations: 107.2 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.1624, allocations: 75.86 kB / 474.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000404/0.1628, allocations: 410.4 kB / 475.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.1631, allocations: 133.4 kB / 475.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.1633, allocations: 147.4 kB / 475.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.1635, allocations: 159.3 kB / 475.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.366e-05/0.1636, allocations: 20 kB / 475.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.468e-05/0.1636, allocations: 20 kB / 475.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.871e-05/0.1637, allocations: 67.67 kB / 475.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.706e-05/0.1638, allocations: 93.52 kB / 475.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003022/0.1641, allocations: 319.3 kB / 476.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1641, allocations: 0 / 476.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1641, allocations: 0 / 476.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1641, allocations: 0 / 476.2 MB, free: 9.02 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.0009032/0.165, allocations: 0.6181 MB / 476.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1651, allocations: 8.562 kB / 476.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.692e-05/0.1651, allocations: 39.53 kB / 476.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.1655, allocations: 283.4 kB / 477.2 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.1655, allocations: 29 kB / 477.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/0.1656, allocations: 47.89 kB / 477.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006553/0.1663, allocations: 381 kB / 477.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.1663, allocations: 7.906 kB / 477.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.1663, allocations: 16 kB / 477.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.1663, allocations: 12 kB / 477.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004883/0.1668, allocations: 259.8 kB / 477.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.1684, allocations: 1.12 MB / 479 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000544/0.169, allocations: 355.4 kB / 479.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.1693, allocations: 178.5 kB / 479.5 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1693, allocations: 4 kB / 479.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.1693, allocations: 39.31 kB / 479.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.663e-06/0.1694, allocations: 4 kB / 479.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003747/0.1731, allocations: 2.478 MB / 482.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.1732, allocations: 110.8 kB / 482.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.1734, allocations: 234.6 kB / 482.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.1735, allocations: 37.7 kB / 482.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.1736, allocations: 188.6 kB / 482.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.1737, allocations: 197 kB / 482.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/0.1738, allocations: 12 kB / 482.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1739, allocations: 346.8 kB / 483.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.1742, allocations: 129.1 kB / 483.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.1745, allocations: 235.8 kB / 483.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.1748, allocations: 167.9 kB / 483.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1748, allocations: 4 kB / 483.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009453/0.1758, allocations: 0.5615 MB / 484.3 MB, free: 412 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1758, allocations: 8 kB / 484.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1758, allocations: 0 / 484.3 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.1762, allocations: 130.5 kB / 484.4 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000361/0.1765, allocations: 99.88 kB / 484.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003894/0.1804, allocations: 4.669 MB / 489.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.1807, allocations: 23.98 kB / 489.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.1807, allocations: 16 kB / 489.2 MB, free: 11.05 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002281/0.181, allocations: 177.7 kB / 489.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.1811, allocations: 43.47 kB / 489.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.1812, allocations: 46.17 kB / 489.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.1812, allocations: 8 kB / 489.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/0.1812, allocations: 4 kB / 489.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.1812, allocations: 7.969 kB / 489.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002115/0.1834, allocations: 1.339 MB / 490.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.1834, allocations: 0 / 490.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000398/0.1838, allocations: 95.89 kB / 490.9 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.1841, allocations: 94.52 kB / 491 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.1841, allocations: 20.08 kB / 491 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003818/0.188, allocations: 4.108 MB / 495.1 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.188, allocations: 7.984 kB / 495.1 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.1895, allocations: 0.9426 MB / 496.1 MB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.1896, allocations: 104.8 kB / 496.2 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.1897, allocations: 15.94 kB / 496.2 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.1899, allocations: 19.98 kB / 496.2 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.1901, allocations: 55.83 kB / 496.3 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.1901, allocations: 16 kB / 496.3 MB, free: 3.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001933/0.1903, allocations: 166 kB / 496.5 MB, free: 3.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1903, allocations: 0 / 496.5 MB, free: 3.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008195/0.1911, allocations: 124 kB / 496.6 MB, free: 3.121 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002144/0.1914, allocations: 115.2 kB / 496.7 MB, free: 3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.1928, allocations: 0.7634 MB / 497.4 MB, free: 2.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1928, allocations: 4 kB / 497.5 MB, free: 2.195 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007842/0.1936, allocations: 0.5818 MB / 498 MB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006889/0.1943, allocations: 54.94 kB / 498.1 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.1971, allocations: 1.312 MB / 499.4 MB, free: 176 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005972/0.1978, allocations: 0.8163 MB / 0.4885 GB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001998/0.198, allocations: 39.27 kB / 0.4885 GB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1981, allocations: 27.44 kB / 0.4886 GB, free: 15.27 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1981, allocations: 0 / 0.4886 GB, free: 15.27 MB / 382.1 MB Notification: Performance of Templates: time 0.01274/0.2108, allocations: 4.001 MB / 0.4925 GB, free: 11.27 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins/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