Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001186/0.001186, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2336/0.2336, allocations: 46.09 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001444, allocations: 78.81 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1387, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004638/0.1434, allocations: 2.849 MB / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.1452, allocations: 0.779 MB / 483.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004108/0.1456, allocations: 11.94 kB / 483.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002792/0.1459, allocations: 55.38 kB / 483.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004409/0.1464, allocations: 126.9 kB / 483.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.1469, allocations: 103.8 kB / 484 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.1475, allocations: 437.9 kB / 484.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.1478, allocations: 145.6 kB / 484.6 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003629/0.1481, allocations: 159.5 kB / 484.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002843/0.1484, allocations: 183.1 kB / 485 MB, free: 356 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.282e-05/0.1485, allocations: 32 kB / 485 MB, free: 324 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.1486, allocations: 40 kB / 485 MB, free: 284 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.756e-05/0.1487, allocations: 79.69 kB / 485.1 MB, free: 204 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.1489, allocations: 203.1 kB / 485.3 MB, free: 0 / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005092/0.1494, allocations: 426.8 kB / 485.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1495, allocations: 0 / 485.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1495, allocations: 0 / 485.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.1495, allocations: 0 / 485.7 MB, free: 15.58 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001117/0.1506, allocations: 0.6512 MB / 486.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.1507, allocations: 12.03 kB / 486.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.256e-05/0.1508, allocations: 78.7 kB / 486.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003108/0.1511, allocations: 56.45 kB / 486.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.1514, allocations: 279.5 kB / 486.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.1515, allocations: 33.31 kB / 486.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.565e-05/0.1516, allocations: 44.28 kB / 486.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006202/0.1522, allocations: 398.2 kB / 487.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.1522, allocations: 4 kB / 487.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.1523, allocations: 16 kB / 487.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1523, allocations: 15.94 kB / 487.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.1527, allocations: 219.7 kB / 487.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.155, allocations: 1.734 MB / 489.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004437/0.1555, allocations: 262.3 kB / 489.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.1557, allocations: 98.08 kB / 489.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.1557, allocations: 0 / 489.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.1557, allocations: 46.48 kB / 489.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.483e-06/0.1557, allocations: 4 kB / 489.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.000696/0.1564, allocations: 261 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.1566, allocations: 213.6 kB / 490.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.1569, allocations: 279.2 kB / 490.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.1569, allocations: 30.08 kB / 490.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.1571, allocations: 247.4 kB / 490.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.1572, allocations: 114.4 kB / 490.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.1574, allocations: 98.25 kB / 490.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1575, allocations: 350.7 kB / 491.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.1578, allocations: 97.27 kB / 491.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004144/0.1582, allocations: 424.8 kB / 491.7 MB, free: 9.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000734/0.1589, allocations: 0.5703 MB / 492.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/0.159, allocations: 4.5 kB / 492.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009515/0.1599, allocations: 0.5252 MB / 492.8 MB, free: 7.738 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.1599, allocations: 16.17 kB / 492.8 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.16, allocations: 16 kB / 492.8 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.317e-05/0.16, allocations: 16 kB / 492.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004673/0.1605, allocations: 151.8 kB / 493 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.939e-05/0.1605, allocations: 23.92 kB / 493 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.1609, allocations: 63.38 kB / 493.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.161, allocations: 28 kB / 493.1 MB, free: 7.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000209/0.1612, allocations: 181.5 kB / 493.3 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.1614, allocations: 35.62 kB / 493.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.082e-05/0.1614, allocations: 33.83 kB / 493.4 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.1614, allocations: 11.94 kB / 493.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.1615, allocations: 0 / 493.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1615, allocations: 4 kB / 493.4 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/0.1631, allocations: 0.6514 MB / 494 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1631, allocations: 4.062 kB / 494 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004597/0.1636, allocations: 87.89 kB / 494.1 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.1636, allocations: 4 kB / 494.1 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.1637, allocations: 15.98 kB / 494.1 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.1637, allocations: 3.938 kB / 494.1 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1637, allocations: 4 kB / 494.1 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000873/0.1646, allocations: 0.8229 MB / 495 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.1647, allocations: 120.8 kB / 495.1 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.181e-05/0.1648, allocations: 11.94 kB / 495.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003571/0.1651, allocations: 11.98 kB / 495.1 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.397e-05/0.1652, allocations: 23.92 kB / 495.1 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1652, allocations: 11.98 kB / 495.1 MB, free: 5.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001836/0.1654, allocations: 186 kB / 495.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.1654, allocations: 0 / 495.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008268/0.1663, allocations: 103.7 kB / 495.4 MB, free: 5 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001126/0.1674, allocations: 1.386 MB / 496.8 MB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006284/0.168, allocations: 301.8 kB / 497.1 MB, free: 3.285 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.168, allocations: 0.875 kB / 497.1 MB, free: 3.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.1683, allocations: 91.83 kB / 497.2 MB, free: 3.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.1694, allocations: 67.53 kB / 497.3 MB, free: 3.133 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00621/0.1756, allocations: 4.938 MB / 0.4904 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.176, allocations: 0.8065 MB / 0.4912 GB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.1763, allocations: 47.25 kB / 0.4913 GB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.1764, allocations: 119.3 kB / 0.4914 GB, free: 12.77 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1765, allocations: 0 / 0.4914 GB, free: 12.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.2052, allocations: 6.503 MB / 0.4977 GB, free: 6.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/7.924, allocations: 7.797 kB / 0.4977 GB, free: 6.359 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches