Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001815/0.001815, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002057/0.002057, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 227.4 MB / 246.8 MB, free: 10.47 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.2298/0.2298, allocations: 46.12 MB / 344.2 MB, free: 11.52 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.002396/0.002396, allocations: 79.77 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1391, allocations: 62.44 MB / 480.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004636/0.1438, allocations: 2.869 MB / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.1452, allocations: 0.7984 MB / 483.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.1454, allocations: 11.94 kB / 483.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.1457, allocations: 71.25 kB / 483.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.1459, allocations: 118.9 kB / 484.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.1463, allocations: 119.8 kB / 484.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004511/0.1467, allocations: 446.4 kB / 484.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003215/0.1471, allocations: 190.1 kB / 484.8 MB, free: 488 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.1473, allocations: 171.4 kB / 485 MB, free: 316 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.1476, allocations: 191.2 kB / 485.2 MB, free: 124 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.084e-05/0.1476, allocations: 32 kB / 485.2 MB, free: 92 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.1477, allocations: 48 kB / 485.2 MB, free: 44 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.807e-05/0.1478, allocations: 79.72 kB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.148, allocations: 207 kB / 485.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000456/0.1485, allocations: 450.6 kB / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1485, allocations: 0 / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1485, allocations: 0 / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1485, allocations: 0 / 486 MB, free: 15.32 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001196/0.1497, allocations: 0.6783 MB / 486.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.1498, allocations: 16.03 kB / 486.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.623e-05/0.1499, allocations: 74.72 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003721/0.1503, allocations: 68.42 kB / 486.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/0.1508, allocations: 299.5 kB / 487.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/0.1508, allocations: 29.38 kB / 487.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.668e-05/0.1509, allocations: 36.38 kB / 487.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007963/0.1517, allocations: 389.1 kB / 487.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.1517, allocations: 7.906 kB / 487.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.1518, allocations: 16 kB / 487.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.1518, allocations: 12 kB / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005069/0.1523, allocations: 247.8 kB / 487.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.1539, allocations: 1.101 MB / 488.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005649/0.1545, allocations: 351.5 kB / 489.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003032/0.1548, allocations: 182.6 kB / 489.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.1549, allocations: 11.98 kB / 489.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.1549, allocations: 42.5 kB / 489.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.412e-06/0.1549, allocations: 0 / 489.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.004316/0.1592, allocations: 2.44 MB / 491.9 MB, free: 8.883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.167e-05/0.1593, allocations: 110.8 kB / 492 MB, free: 8.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.1596, allocations: 250.7 kB / 492.3 MB, free: 8.496 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.1596, allocations: 33.7 kB / 492.3 MB, free: 8.457 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.1598, allocations: 184.6 kB / 492.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.1599, allocations: 201 kB / 492.7 MB, free: 8.074 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.1601, allocations: 86.25 kB / 492.8 MB, free: 7.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1603, allocations: 350.7 kB / 493.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002647/0.1605, allocations: 129.1 kB / 493.2 MB, free: 7.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003355/0.1609, allocations: 231.8 kB / 493.5 MB, free: 7.242 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006711/0.1615, allocations: 402 kB / 493.8 MB, free: 6.812 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1616, allocations: 0 / 493.8 MB, free: 6.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001111/0.1627, allocations: 0.5575 MB / 494.4 MB, free: 6.238 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1627, allocations: 8 kB / 494.4 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1627, allocations: 0 / 494.4 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003697/0.1631, allocations: 126.8 kB / 494.5 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003767/0.1635, allocations: 99.83 kB / 494.6 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005073/0.1686, allocations: 5.215 MB / 499.9 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002418/0.1688, allocations: 16.03 kB / 499.9 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.1689, allocations: 20 kB / 499.9 MB, free: 348 kB / 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.0002034/0.1691, allocations: 176.8 kB / 0.4883 GB, free: 164 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.1692, allocations: 39.53 kB / 0.4884 GB, free: 124 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.132e-05/0.1693, allocations: 46.17 kB / 0.4884 GB, free: 80 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.1693, allocations: 8 kB / 0.4884 GB, free: 72 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.1693, allocations: 7.938 kB / 0.4884 GB, free: 64 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1693, allocations: 192 / 0.4884 GB, free: 64 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.1715, allocations: 1.331 MB / 0.4897 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/0.1715, allocations: 0 / 0.4897 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.172, allocations: 99.88 kB / 0.4898 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003047/0.1723, allocations: 102.5 kB / 0.4899 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/0.1723, allocations: 12 kB / 0.4899 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003844/0.1762, allocations: 4.427 MB / 0.4943 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.1762, allocations: 4.031 kB / 0.4943 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.1777, allocations: 0.9232 MB / 0.4952 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.1778, allocations: 112.6 kB / 0.4953 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.635e-05/0.1779, allocations: 12.06 kB / 0.4953 GB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002628/0.1781, allocations: 23.92 kB / 0.4953 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.1782, allocations: 40.02 kB / 0.4953 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/0.1783, allocations: 19.98 kB / 0.4954 GB, free: 8.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.1785, allocations: 182 kB / 0.4955 GB, free: 8.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1785, allocations: 3.938 kB / 0.4955 GB, free: 8.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007421/0.1793, allocations: 120 kB / 0.4957 GB, free: 8.098 MB / 382.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.001776/0.1811, allocations: 1.474 MB / 0.4971 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.1825, allocations: 0.7926 MB / 0.4979 GB, free: 5.746 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/0.1825, allocations: 4 kB / 0.4979 GB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008627/0.1834, allocations: 0.57 MB / 0.4984 GB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007269/0.1842, allocations: 77.23 kB / 0.4985 GB, free: 5.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00633/0.1905, allocations: 4.184 MB / 0.5026 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.216/0.4066, allocations: 0.8165 MB / 0.5034 GB, free: 40.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002088/0.4068, allocations: 37.94 kB / 0.5034 GB, free: 40.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001894/0.407, allocations: 131.4 kB / 0.5036 GB, free: 40.12 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.407, allocations: 0 / 0.5036 GB, free: 40.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04897/0.456, allocations: 8.184 MB / 0.5115 GB, free: 39.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.58, allocations: 13.03 kB / 0.5116 GB, free: 39.42 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions_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_Directions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1)