Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.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.001698/0.001698, 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.0021/0.0021, 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.553/1.553, allocations: 230.4 MB / 254.7 MB, free: 15.01 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.2296/0.2296, allocations: 46.92 MB / 357.7 MB, free: 10.18 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.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux",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.002443/0.002443, allocations: 79.86 kB / 0.4917 GB, free: 7.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1523, allocations: 66.04 MB / 0.5562 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003153/0.1554, allocations: 1.568 MB / 0.5577 GB, free: 3.953 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002718/0.1557, allocations: 63.75 kB / 0.5577 GB, free: 3.891 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.1558, allocations: 4 kB / 0.5577 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.1559, allocations: 23.78 kB / 0.5578 GB, free: 3.863 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.225e-05/0.1559, allocations: 7.938 kB / 0.5578 GB, free: 3.855 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001432/0.1561, allocations: 19.97 kB / 0.5578 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.1562, allocations: 67.83 kB / 0.5579 GB, free: 3.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.1565, allocations: 115.4 kB / 0.558 GB, free: 3.648 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.728e-05/0.1566, allocations: 35.92 kB / 0.558 GB, free: 3.613 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.658e-05/0.1567, allocations: 43.83 kB / 0.558 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.1567, allocations: 8 kB / 0.5581 GB, free: 3.562 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.984e-05/0.1567, allocations: 8 kB / 0.5581 GB, free: 3.555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.387e-05/0.1568, allocations: 71.81 kB / 0.5581 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.994e-05/0.1569, allocations: 67.59 kB / 0.5582 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002186/0.1571, allocations: 147.3 kB / 0.5583 GB, free: 3.273 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1571, allocations: 0 / 0.5583 GB, free: 3.273 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1571, allocations: 0 / 0.5583 GB, free: 3.273 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1571, allocations: 0 / 0.5583 GB, free: 3.273 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005826/0.1577, allocations: 455.1 kB / 0.5588 GB, free: 2.781 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1577, allocations: 8.031 kB / 0.5588 GB, free: 2.773 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.1579, allocations: 67.11 kB / 0.5588 GB, free: 2.695 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.565e-05/0.1579, allocations: 16.84 kB / 0.5589 GB, free: 2.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.1582, allocations: 224 kB / 0.5591 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.1582, allocations: 12.81 kB / 0.5591 GB, free: 2.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.1582, allocations: 24.38 kB / 0.5591 GB, free: 2.387 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003914/0.1586, allocations: 211.5 kB / 0.5593 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.1586, allocations: 4 kB / 0.5593 GB, free: 2.168 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.1586, allocations: 8 kB / 0.5593 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1586, allocations: 4 kB / 0.5593 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.1589, allocations: 129.7 kB / 0.5594 GB, free: 2.031 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007089/0.1596, allocations: 0.5119 MB / 0.5599 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.818e-05/0.1597, allocations: 42.5 kB / 0.56 GB, free: 1.418 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.837e-05/0.1598, allocations: 32.91 kB / 0.56 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.1598, allocations: 0 / 0.56 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.1598, allocations: 30.56 kB / 0.56 GB, free: 1.344 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 8.92e-07/0.1598, allocations: 0 / 0.56 GB, free: 1.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.000258/0.1601, allocations: 81.62 kB / 0.5601 GB, free: 1.258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.1601, allocations: 59.34 kB / 0.5602 GB, free: 1.188 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.914e-05/0.1602, allocations: 109.8 kB / 0.5603 GB, free: 1.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.1602, allocations: 25.7 kB / 0.5603 GB, free: 1.039 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.009e-05/0.1603, allocations: 152.1 kB / 0.5605 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.1603, allocations: 11.84 kB / 0.5605 GB, free: 0.875 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.1604, allocations: 17.72 kB / 0.5605 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1605, allocations: 326.8 kB / 0.5608 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.002e-05/0.1606, allocations: 8 kB / 0.5608 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.862e-05/0.1606, allocations: 15.98 kB / 0.5608 GB, free: 0.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.229e-05/0.1607, allocations: 28.84 kB / 0.5608 GB, free: 480 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1607, allocations: 0 / 0.5608 GB, free: 480 kB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001298/0.1608, allocations: 73.56 kB / 0.5609 GB, free: 400 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.1608, allocations: 4 kB / 0.5609 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1608, allocations: 3.984 kB / 0.5609 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.1608, allocations: 0 / 0.5609 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.412e-05/0.1609, allocations: 12 kB / 0.5609 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1609, allocations: 0 / 0.5609 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.277e-05/0.161, allocations: 11.98 kB / 0.5609 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.161, allocations: 0 / 0.5609 GB, free: 368 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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.0001131/0.1611, allocations: 137.8 kB / 0.5611 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.1611, allocations: 3.953 kB / 0.5611 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.028e-05/0.1611, allocations: 7.969 kB / 0.5611 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1611, allocations: 0 / 0.5611 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1611, allocations: 3.984 kB / 0.5611 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1611, allocations: 4 kB / 0.5611 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004364/0.1616, allocations: 378.8 kB / 0.5615 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1616, allocations: 0 / 0.5615 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.965e-05/0.1616, allocations: 12.06 kB / 0.5615 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.1616, allocations: 0 / 0.5615 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1616, allocations: 0 / 0.5615 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1616, allocations: 4 kB / 0.5615 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1616, allocations: 7.875 kB / 0.5615 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/0.1618, allocations: 163.5 kB / 0.5616 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.601e-05/0.1619, allocations: 85.06 kB / 0.5617 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.1619, allocations: 0 / 0.5617 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.906e-05/0.1619, allocations: 7.984 kB / 0.5617 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.221e-05/0.1619, allocations: 3.938 kB / 0.5617 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.1619, allocations: 0 / 0.5617 GB, free: 15.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.975e-05/0.162, allocations: 91.27 kB / 0.5618 GB, free: 15.37 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.162, allocations: 4 kB / 0.5618 GB, free: 15.36 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.1622, allocations: 27.84 kB / 0.5618 GB, free: 15.34 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (5): * Single equations (assignments): 5 * 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.000586/0.1628, allocations: 0.7007 MB / 0.5625 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001397/0.163, allocations: 36.03 kB / 0.5626 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.163, allocations: 4 kB / 0.5626 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.632e-05/0.163, allocations: 15.94 kB / 0.5626 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.1633, allocations: 20.23 kB / 0.5626 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.1649, allocations: 1.454 MB / 0.564 GB, free: 13.01 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.1653, allocations: 0.7275 MB / 0.5647 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.702e-05/0.1654, allocations: 11.78 kB / 0.5647 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.136e-05/0.1654, allocations: 47.42 kB / 0.5648 GB, free: 12.2 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1654, allocations: 0 / 0.5648 GB, free: 12.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02294/0.1884, allocations: 1.955 MB / 0.5667 GB, free: 10.31 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/8.149, allocations: 11.92 kB / 0.5667 GB, free: 10.3 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.302244641818106] Failed to read output from testmodel.py, exit status != 0: ['time', 'y1', 'y2', 'y3', 'y4', 'y5', 'clock.y', 'mux5.y[1]', 'mux5.y[2]', 'mux5.y[3]', 'mux5.y[4]', 'mux5.y[5]', 'demux5.y[1]', 'demux5.y[2]', 'demux5.y[3]', 'demux5.y[4]', 'demux5.y[5]', 'mux3.y[1]', 'mux3.y[2]', 'mux3.y[3]', 'mux2.y[1]', 'mux2.y[2]', 'demux2.y[1]', 'demux2.y[2]', 'demux3.y[1]', 'demux3.y[2]', 'demux3.y[3]'] 8.216963639948517 8.237090425 8.07625565 Calling exit ...