Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001908/0.001908, allocations: 122.5 kB / 18.51 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001963/0.001963, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2532/0.2532, allocations: 46.92 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] 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.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002349/0.002349, allocations: 79.88 kB / 0.4916 GB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1442, allocations: 66.04 MB / 0.5561 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00487/0.1491, allocations: 3.046 MB / 0.5591 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002391/0.1515, allocations: 1.079 MB / 0.5602 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003225/0.1518, allocations: 11.88 kB / 0.5602 GB, free: 1.395 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.152, allocations: 67.38 kB / 0.5602 GB, free: 1.328 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003245/0.1524, allocations: 130.9 kB / 0.5604 GB, free: 1.199 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007308/0.1531, allocations: 163.6 kB / 0.5605 GB, free: 1.039 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006331/0.1537, allocations: 453.8 kB / 0.561 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.154, allocations: 83.59 kB / 0.561 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002876/0.1543, allocations: 171.4 kB / 0.5612 GB, free: 344 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000298/0.1546, allocations: 179.2 kB / 0.5614 GB, free: 164 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.649e-05/0.1546, allocations: 28 kB / 0.5614 GB, free: 136 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.1548, allocations: 51.98 kB / 0.5614 GB, free: 84 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.216e-05/0.1549, allocations: 79.69 kB / 0.5615 GB, free: 4 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000255/0.1551, allocations: 191.2 kB / 0.5617 GB, free: 15.81 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000691/0.1558, allocations: 438.2 kB / 0.5621 GB, free: 15.38 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1558, allocations: 0 / 0.5621 GB, free: 15.38 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1558, allocations: 0 / 0.5621 GB, free: 15.38 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.1558, allocations: 0 / 0.5621 GB, free: 15.38 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001303/0.1571, allocations: 0.678 MB / 0.5628 GB, free: 14.66 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.1572, allocations: 8.031 kB / 0.5628 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.1573, allocations: 74.72 kB / 0.5629 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.1577, allocations: 68.64 kB / 0.5629 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006065/0.1583, allocations: 295.5 kB / 0.5632 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-05/0.1584, allocations: 25.38 kB / 0.5632 GB, free: 14.15 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.803e-05/0.1584, allocations: 48.06 kB / 0.5633 GB, free: 14.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007364/0.1592, allocations: 363.6 kB / 0.5636 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.956e-05/0.1592, allocations: 4 kB / 0.5636 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.1592, allocations: 19.94 kB / 0.5636 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.1593, allocations: 8 kB / 0.5637 GB, free: 13.69 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.1597, allocations: 226.7 kB / 0.5639 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002582/0.1623, allocations: 1.593 MB / 0.5654 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006242/0.163, allocations: 291.7 kB / 0.5657 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.1631, allocations: 93.17 kB / 0.5658 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.1632, allocations: 7.938 kB / 0.5658 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.1632, allocations: 46.55 kB / 0.5658 GB, free: 11.26 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.074e-06/0.1632, allocations: 0 / 0.5658 GB, free: 11.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007453/0.164, allocations: 269.9 kB / 0.5661 GB, free: 10.99 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.1641, allocations: 184.1 kB / 0.5663 GB, free: 10.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.1644, allocations: 238.6 kB / 0.5665 GB, free: 10.52 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.1644, allocations: 33.83 kB / 0.5665 GB, free: 10.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.1646, allocations: 224.2 kB / 0.5668 GB, free: 10.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.1647, allocations: 111 kB / 0.5669 GB, free: 10.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.1648, allocations: 82.08 kB / 0.5669 GB, free: 10.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.165, allocations: 338.8 kB / 0.5673 GB, free: 9.723 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.1652, allocations: 84.83 kB / 0.5673 GB, free: 9.641 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.1655, allocations: 253.7 kB / 0.5676 GB, free: 9.316 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005565/0.1661, allocations: 357.1 kB / 0.5679 GB, free: 8.891 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1661, allocations: 4 kB / 0.5679 GB, free: 8.887 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006784/0.1668, allocations: 377.4 kB / 0.5683 GB, free: 8.512 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.1668, allocations: 12.03 kB / 0.5683 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.1668, allocations: 8 kB / 0.5683 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.1668, allocations: 11.94 kB / 0.5683 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.1672, allocations: 99.89 kB / 0.5684 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.1672, allocations: 16.02 kB / 0.5684 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.1675, allocations: 47.92 kB / 0.5685 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.1675, allocations: 20.09 kB / 0.5685 GB, free: 8.301 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001927/0.1677, allocations: 161.6 kB / 0.5686 GB, free: 8.133 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.1679, allocations: 39.78 kB / 0.5687 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002148/0.1681, allocations: 95.39 kB / 0.5688 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.1681, allocations: 4 kB / 0.5688 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1681, allocations: 0 / 0.5688 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1681, allocations: 3.938 kB / 0.5688 GB, free: 7.984 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007475/0.1688, allocations: 357.3 kB / 0.5691 GB, free: 7.586 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1688, allocations: 0 / 0.5691 GB, free: 7.586 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.1692, allocations: 79.95 kB / 0.5692 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.1693, allocations: 4 kB / 0.5692 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.1693, allocations: 8 kB / 0.5692 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.1693, allocations: 7.938 kB / 0.5692 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1693, allocations: 4 kB / 0.5692 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008626/0.1701, allocations: 0.7664 MB / 0.57 GB, free: 6.695 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.79e-05/0.1702, allocations: 100.9 kB / 0.5701 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.567e-05/0.1703, allocations: 15.92 kB / 0.5701 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.1706, allocations: 8 kB / 0.5701 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.1707, allocations: 19.97 kB / 0.5701 GB, free: 6.535 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1707, allocations: 11.94 kB / 0.5701 GB, free: 6.523 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.1709, allocations: 170 kB / 0.5703 GB, free: 6.359 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1709, allocations: 0 / 0.5703 GB, free: 6.359 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006474/0.1715, allocations: 99.84 kB / 0.5704 GB, free: 6.262 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * 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.001173/0.1727, allocations: 1.306 MB / 0.5717 GB, free: 4.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005444/0.1732, allocations: 220.7 kB / 0.5719 GB, free: 4.715 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.1732, allocations: 4 kB / 0.5719 GB, free: 4.711 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.1734, allocations: 99.94 kB / 0.572 GB, free: 4.613 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009548/0.1744, allocations: 92.28 kB / 0.5721 GB, free: 4.527 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005592/0.18, allocations: 4.082 MB / 0.576 GB, free: 196 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.1805, allocations: 0.7989 MB / 0.5768 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000185/0.1807, allocations: 30.97 kB / 0.5768 GB, free: 15.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.1808, allocations: 107.4 kB / 0.577 GB, free: 15.23 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/0.1808, allocations: 0 / 0.577 GB, free: 15.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03608/0.2169, allocations: 6.48 MB / 0.5833 GB, free: 8.867 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.785/9.002, allocations: 7.922 kB / 0.5833 GB, free: 8.859 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000399521 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.460778059903532] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.phi', 'inertia1.w', 'inertia2.phi', 'inertia2.w', 'inertia3.phi', 'inertia3.w', 'inertia4.phi', 'inertia4.w', 'inertia5.phi', 'inertia5.w', 'inertia6.phi', 'inertia6.w'] 9.078675240278244 9.303692077000001 9.145152077 Calling exit ...