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.001639/0.001639, allocations: 105.3 kB / 17.2 MB, free: 6.27 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.002184/0.002184, allocations: 194 kB / 18.12 MB, free: 5.363 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.471/1.471, allocations: 222.9 MB / 241.8 MB, free: 15.57 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.2334/0.2334, allocations: 44.17 MB / 336.1 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 60.62 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1375, allocations: 60.83 MB / 468.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004876/0.1424, allocations: 2.862 MB / 471.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.1436, allocations: 0.705 MB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.1438, allocations: 11.94 kB / 472.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001981/0.144, allocations: 47.62 kB / 472.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.1443, allocations: 103.2 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.1445, allocations: 79.92 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003744/0.1449, allocations: 430.3 kB / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.1452, allocations: 155 kB / 472.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000233/0.1454, allocations: 159.4 kB / 473 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.1456, allocations: 183.1 kB / 473.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.316e-05/0.1457, allocations: 31.94 kB / 473.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.889e-05/0.1458, allocations: 24 kB / 473.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.514e-05/0.1458, allocations: 75.73 kB / 473.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.146, allocations: 191 kB / 473.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.1464, allocations: 426.6 kB / 474 MB, free: 9.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1464, allocations: 0 / 474 MB, free: 9.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1464, allocations: 0 / 474 MB, free: 9.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1464, allocations: 7.938 kB / 474 MB, free: 9.383 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.0009748/0.1474, allocations: 0.6668 MB / 474.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.1474, allocations: 16.03 kB / 474.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.1475, allocations: 44.38 kB / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003209/0.1478, allocations: 284.5 kB / 475 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.1479, allocations: 29.38 kB / 475 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.1479, allocations: 40.38 kB / 475 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006421/0.1486, allocations: 385.3 kB / 475.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.1486, allocations: 7.906 kB / 475.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.1487, allocations: 20 kB / 475.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1487, allocations: 8 kB / 475.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004835/0.1492, allocations: 248.3 kB / 475.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.1509, allocations: 1.108 MB / 476.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005257/0.1514, allocations: 351.5 kB / 477.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.1517, allocations: 179.2 kB / 477.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.1517, allocations: 8 kB / 477.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1518, allocations: 38.56 kB / 477.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 3.316e-06/0.1518, allocations: 4 kB / 477.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.00383/0.1556, allocations: 2.439 MB / 479.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.1557, allocations: 114.8 kB / 479.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002514/0.156, allocations: 234.6 kB / 480.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.156, allocations: 33.7 kB / 480.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.1561, allocations: 188.6 kB / 480.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.1563, allocations: 201 kB / 480.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.1565, allocations: 86.25 kB / 480.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1566, allocations: 350.7 kB / 481 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.1569, allocations: 129.1 kB / 481.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.1572, allocations: 239.7 kB / 481.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006315/0.1579, allocations: 394 kB / 481.7 MB, free: 1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1579, allocations: 4 kB / 481.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001009/0.1589, allocations: 0.5539 MB / 482.3 MB, free: 436 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1589, allocations: 10.5 kB / 482.3 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/0.159, allocations: 8 kB / 482.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003585/0.1593, allocations: 126.4 kB / 482.4 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.1597, allocations: 91.89 kB / 482.5 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004086/0.1638, allocations: 4.683 MB / 487.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.1641, allocations: 16.31 kB / 487.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.1641, allocations: 20 kB / 487.2 MB, free: 11.07 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.0002218/0.1644, allocations: 173.8 kB / 487.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.1645, allocations: 35.56 kB / 487.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.679e-05/0.1646, allocations: 54.17 kB / 487.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1646, allocations: 4 kB / 487.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/0.1646, allocations: 4 kB / 487.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1646, allocations: 0 / 487.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.1668, allocations: 1.339 MB / 488.8 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.1668, allocations: 4 kB / 488.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004093/0.1672, allocations: 95.88 kB / 488.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002799/0.1675, allocations: 94.45 kB / 489 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.1676, allocations: 15.94 kB / 489 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/0.1709, allocations: 4.108 MB / 493.2 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.1709, allocations: 8.016 kB / 493.2 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.1723, allocations: 0.9269 MB / 494.1 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1725, allocations: 104.8 kB / 494.2 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.1725, allocations: 11.98 kB / 494.2 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.1728, allocations: 19.94 kB / 494.2 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.1729, allocations: 51.88 kB / 494.3 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.1729, allocations: 16 kB / 494.3 MB, free: 3.473 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001865/0.1731, allocations: 174 kB / 494.5 MB, free: 3.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1731, allocations: 0 / 494.5 MB, free: 3.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007698/0.1739, allocations: 120 kB / 494.6 MB, free: 3.18 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.0001932/0.1741, allocations: 115.1 kB / 494.7 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.1755, allocations: 0.7691 MB / 495.5 MB, free: 2.246 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1755, allocations: 8 kB / 495.5 MB, free: 2.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007836/0.1763, allocations: 0.5716 MB / 496 MB, free: 1.629 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009875/0.1773, allocations: 56.72 kB / 496.1 MB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.1794, allocations: 1.249 MB / 497.3 MB, free: 288 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.1798, allocations: 0.8202 MB / 498.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.1799, allocations: 31.28 kB / 498.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.103e-05/0.18, allocations: 35.42 kB / 498.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.18, allocations: 0 / 498.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of Templates: time 0.008994/0.189, allocations: 4.226 MB / 0.4907 GB, free: 11.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/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