Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.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.001764/0.001764, allocations: 121.2 kB / 18.5 MB, free: 4.578 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.001798/0.001798, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.506/1.506, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.2355/0.2355, allocations: 46.93 MB / 357.7 MB, free: 10.19 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.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare",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.00302/0.00302, allocations: 87.84 kB / 0.4917 GB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1552, allocations: 66.04 MB / 0.5562 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003314/0.1585, allocations: 1.694 MB / 0.5578 GB, free: 3.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.1596, allocations: 0.5898 MB / 0.5584 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.166e-05/0.1597, allocations: 3.938 kB / 0.5584 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.1598, allocations: 15.86 kB / 0.5584 GB, free: 3.227 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.103e-05/0.1599, allocations: 19.8 kB / 0.5584 GB, free: 3.207 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.1602, allocations: 67.81 kB / 0.5585 GB, free: 3.141 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.1604, allocations: 111.7 kB / 0.5586 GB, free: 3.031 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.1605, allocations: 37.09 kB / 0.5586 GB, free: 2.996 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.1606, allocations: 51.78 kB / 0.5587 GB, free: 2.945 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.1608, allocations: 47.77 kB / 0.5587 GB, free: 2.898 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.1608, allocations: 12 kB / 0.5587 GB, free: 2.887 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.762e-05/0.1608, allocations: 27.98 kB / 0.5588 GB, free: 2.859 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.08e-05/0.1609, allocations: 23.92 kB / 0.5588 GB, free: 2.836 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.332e-05/0.161, allocations: 51.72 kB / 0.5588 GB, free: 2.785 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.1612, allocations: 127.4 kB / 0.559 GB, free: 2.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1612, allocations: 0 / 0.559 GB, free: 2.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1612, allocations: 0 / 0.559 GB, free: 2.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1612, allocations: 0 / 0.559 GB, free: 2.66 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008015/0.162, allocations: 426.9 kB / 0.5594 GB, free: 2.195 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.162, allocations: 15.97 kB / 0.5594 GB, free: 2.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.527e-05/0.1621, allocations: 46.73 kB / 0.5594 GB, free: 2.125 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.1623, allocations: 24.88 kB / 0.5594 GB, free: 2.102 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.1626, allocations: 208.7 kB / 0.5596 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.1626, allocations: 8.375 kB / 0.5597 GB, free: 1.852 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.1626, allocations: 11.94 kB / 0.5597 GB, free: 1.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.1629, allocations: 94.84 kB / 0.5598 GB, free: 1.742 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1629, allocations: 4 kB / 0.5598 GB, free: 1.738 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.1629, allocations: 8 kB / 0.5598 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1629, allocations: 0 / 0.5598 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.1631, allocations: 47.97 kB / 0.5598 GB, free: 1.684 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.1637, allocations: 392.5 kB / 0.5602 GB, free: 1.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.1639, allocations: 62.48 kB / 0.5602 GB, free: 1.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.199e-05/0.164, allocations: 24.95 kB / 0.5603 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.164, allocations: 4.031 kB / 0.5603 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002042/0.1642, allocations: 95.3 kB / 0.5604 GB, free: 1.043 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.1642, allocations: 0 / 0.5604 GB, free: 1.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003811/0.1646, allocations: 137.5 kB / 0.5605 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.1646, allocations: 55.39 kB / 0.5605 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.1648, allocations: 148.8 kB / 0.5607 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1648, allocations: 33.7 kB / 0.5607 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.453e-05/0.1649, allocations: 108.1 kB / 0.5608 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.1649, allocations: 19.86 kB / 0.5608 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/0.165, allocations: 29.7 kB / 0.5609 GB, free: 492 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1652, allocations: 330.8 kB / 0.5612 GB, free: 152 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.689e-05/0.1652, allocations: 23.98 kB / 0.5612 GB, free: 128 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.1654, allocations: 91.58 kB / 0.5613 GB, free: 8 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.1656, allocations: 116 kB / 0.5614 GB, free: 15.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1656, allocations: 0 / 0.5614 GB, free: 15.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002811/0.1659, allocations: 153.3 kB / 0.5616 GB, free: 15.71 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1659, allocations: 8 kB / 0.5616 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1659, allocations: 3.938 kB / 0.5616 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1659, allocations: 4 kB / 0.5616 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.166, allocations: 19.98 kB / 0.5616 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.166, allocations: 7.938 kB / 0.5616 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.731e-05/0.1661, allocations: 12.17 kB / 0.5616 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.1661, allocations: 12 kB / 0.5616 GB, free: 15.64 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001321/0.1662, allocations: 127.2 kB / 0.5617 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.27e-05/0.1663, allocations: 11.89 kB / 0.5618 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.053e-05/0.1663, allocations: 12.72 kB / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1663, allocations: 0 / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1663, allocations: 0 / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1663, allocations: 0 / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002064/0.1665, allocations: 209.5 kB / 0.562 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1665, allocations: 4 kB / 0.562 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.1666, allocations: 19.86 kB / 0.562 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1666, allocations: 0 / 0.562 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.1666, allocations: 8 kB / 0.562 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.1666, allocations: 11.92 kB / 0.562 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1667, allocations: 0 / 0.562 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003725/0.167, allocations: 165 kB / 0.5622 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.984e-05/0.1671, allocations: 97.05 kB / 0.5623 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.1671, allocations: 4.031 kB / 0.5623 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.222e-05/0.1672, allocations: 0 / 0.5623 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.1672, allocations: 7.984 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.1672, allocations: 8 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.025e-05/0.1673, allocations: 111.2 kB / 0.5624 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1673, allocations: 0 / 0.5624 GB, free: 14.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.1675, allocations: 20 kB / 0.5624 GB, free: 14.75 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006797/0.1682, allocations: 0.7021 MB / 0.5631 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.1684, allocations: 79.83 kB / 0.5632 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1684, allocations: 0 / 0.5632 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.1685, allocations: 36.42 kB / 0.5632 GB, free: 13.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.1688, allocations: 15.98 kB / 0.5632 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.1708, allocations: 1.706 MB / 0.5649 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.1712, allocations: 0.708 MB / 0.5656 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.763e-05/0.1713, allocations: 12.41 kB / 0.5656 GB, free: 11.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.382e-05/0.1713, allocations: 39.42 kB / 0.5656 GB, free: 11.27 MB / 430.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1713, allocations: 0 / 0.5656 GB, free: 11.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0261/0.1974, allocations: 2.464 MB / 0.568 GB, free: 8.883 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.012/8.21, allocations: 15.02 kB / 0.568 GB, free: 8.871 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0003996 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.308134392369539] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean1.x', 'rootMeanSquare.mean.x', 'mean1.y', 'rootMeanSquare.mean.y'] 8.281269641127437 8.306205261 8.140548945 Calling exit ...