Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001893/0.001893, 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.00224/0.00224, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2398/0.2398, allocations: 46.11 MB / 344.2 MB, free: 11.6 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002222/0.002222, allocations: 77.44 kB / 417.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.154, allocations: 62.45 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.006158/0.1602, allocations: 2.844 MB / 483 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.1623, allocations: 0.779 MB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002347/0.1626, allocations: 15.94 kB / 483.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.1629, allocations: 59.39 kB / 483.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003476/0.1632, allocations: 118.9 kB / 484 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.1637, allocations: 115.7 kB / 484.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006313/0.1643, allocations: 433.9 kB / 484.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003466/0.1647, allocations: 137.6 kB / 484.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003761/0.1651, allocations: 171.4 kB / 484.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003351/0.1654, allocations: 187.1 kB / 485 MB, free: 320 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.21e-05/0.1655, allocations: 32 kB / 485.1 MB, free: 288 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.1657, allocations: 36 kB / 485.1 MB, free: 252 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.795e-05/0.1658, allocations: 79.7 kB / 485.2 MB, free: 172 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003194/0.1661, allocations: 199.1 kB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006693/0.1668, allocations: 430.7 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1668, allocations: 0 / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.1668, allocations: 4 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.1669, allocations: 0 / 485.8 MB, free: 15.55 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.00137/0.1682, allocations: 0.6473 MB / 486.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1683, allocations: 8.031 kB / 486.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.1684, allocations: 74.72 kB / 486.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003727/0.1688, allocations: 60.44 kB / 486.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004601/0.1693, allocations: 283.5 kB / 486.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.398e-05/0.1693, allocations: 33.31 kB / 486.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.1695, allocations: 48.27 kB / 486.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009531/0.1704, allocations: 394.2 kB / 487.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.1705, allocations: 12 kB / 487.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.597e-05/0.1705, allocations: 12 kB / 487.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.1706, allocations: 8 kB / 487.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006319/0.1712, allocations: 223.2 kB / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.1744, allocations: 1.73 MB / 489.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006324/0.175, allocations: 262.3 kB / 489.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.1753, allocations: 98.06 kB / 489.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.1753, allocations: 8.062 kB / 489.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.298e-05/0.1754, allocations: 46.5 kB / 489.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.946e-06/0.1754, allocations: 0 / 489.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.001031/0.1765, allocations: 262 kB / 490 MB, free: 11.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/0.1767, allocations: 221.5 kB / 490.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004444/0.1771, allocations: 275.2 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.1772, allocations: 33.7 kB / 490.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.1774, allocations: 235.3 kB / 490.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.1776, allocations: 118.4 kB / 490.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.1778, allocations: 98.25 kB / 490.9 MB, free: 10 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002348/0.178, allocations: 354.7 kB / 491.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003142/0.1784, allocations: 97.25 kB / 491.4 MB, free: 9.555 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007183/0.1791, allocations: 428.8 kB / 491.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.1802, allocations: 0.5702 MB / 492.4 MB, free: 8.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/0.1802, allocations: 8.062 kB / 492.4 MB, free: 8.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001428/0.1817, allocations: 0.5282 MB / 492.9 MB, free: 7.695 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.1817, allocations: 8 kB / 492.9 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.1818, allocations: 12 kB / 492.9 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.868e-05/0.1818, allocations: 16 kB / 492.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007222/0.1825, allocations: 147.7 kB / 493.1 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.152e-05/0.1826, allocations: 20.47 kB / 493.1 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005148/0.1831, allocations: 71.36 kB / 493.2 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.1832, allocations: 32 kB / 493.2 MB, free: 7.395 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.0002825/0.1835, allocations: 177.5 kB / 493.4 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/0.1838, allocations: 36.05 kB / 493.4 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.822e-05/0.1839, allocations: 33.83 kB / 493.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.1839, allocations: 7.938 kB / 493.4 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.1839, allocations: 4 kB / 493.4 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.1839, allocations: 7.969 kB / 493.5 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.186, allocations: 0.6475 MB / 494.1 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.186, allocations: 4 kB / 494.1 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006927/0.1867, allocations: 87.88 kB / 494.2 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.1868, allocations: 4 kB / 494.2 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.1868, allocations: 8 kB / 494.2 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-05/0.1868, allocations: 7.938 kB / 494.2 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.1868, allocations: 8.062 kB / 494.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.188, allocations: 0.8307 MB / 495.1 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.1881, allocations: 104.8 kB / 495.2 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.538e-05/0.1882, allocations: 19.92 kB / 495.2 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004509/0.1887, allocations: 8 kB / 495.2 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.369e-05/0.1888, allocations: 28.03 kB / 495.2 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.1888, allocations: 12 kB / 495.2 MB, free: 5.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.189, allocations: 190 kB / 495.4 MB, free: 5.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.189, allocations: 0 / 495.4 MB, free: 5.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008328/0.1898, allocations: 107.7 kB / 495.5 MB, free: 4.961 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.001271/0.1911, allocations: 1.375 MB / 496.9 MB, free: 3.547 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006348/0.1918, allocations: 301.2 kB / 497.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1918, allocations: 0 / 497.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.192, allocations: 87.83 kB / 497.3 MB, free: 3.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.193, allocations: 67.98 kB / 497.3 MB, free: 3.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006466/0.1995, allocations: 4.942 MB / 0.4905 GB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005043/0.2, allocations: 0.7987 MB / 0.4913 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.2002, allocations: 47.25 kB / 0.4913 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.2004, allocations: 123.3 kB / 0.4914 GB, free: 12.74 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2004, allocations: 0 / 0.4914 GB, free: 12.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03327/0.2337, allocations: 6.511 MB / 0.4978 GB, free: 6.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.357, allocations: 23.27 kB / 0.4978 GB, free: 6.324 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1)