Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002691/0.002691, allocations: 203.3 kB / 20.74 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.568/1.568, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2268/0.2268, allocations: 44.91 MB / 355.1 MB, free: 12.34 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 71.88 kB / 499.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1352, allocations: 65.42 MB / 0.5517 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001645/0.1368, allocations: 494.7 kB / 0.5522 GB, free: 9.672 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002674/0.1395, allocations: 1.801 MB / 0.554 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.913e-05/0.1395, allocations: 0 / 0.554 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.846e-05/0.1396, allocations: 0 / 0.554 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.191e-06/0.1396, allocations: 0 / 0.554 GB, free: 7.852 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:120:3-169:18:writable] Warning: Pure function 'ModelicaTest.Math.Polynomials' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000956/0.1405, allocations: 243.1 kB / 0.5542 GB, free: 7.613 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.331e-05/0.1406, allocations: 4 kB / 0.5542 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.1406, allocations: 0 / 0.5542 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.526e-05/0.1406, allocations: 0 / 0.5542 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.541e-05/0.1406, allocations: 0 / 0.5542 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.24e-06/0.1406, allocations: 0 / 0.5542 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006555/0.1413, allocations: 431.2 kB / 0.5546 GB, free: 7.188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.045e-06/0.1413, allocations: 3.984 kB / 0.5546 GB, free: 7.184 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.764e-05/0.1413, allocations: 0 / 0.5546 GB, free: 7.184 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004308/0.1418, allocations: 311.5 kB / 0.5549 GB, free: 6.879 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1418, allocations: 0 / 0.5549 GB, free: 6.879 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1418, allocations: 0 / 0.5549 GB, free: 6.879 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1418, allocations: 0 / 0.5549 GB, free: 6.879 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004433/0.1422, allocations: 388.7 kB / 0.5553 GB, free: 6.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.1423, allocations: 16.02 kB / 0.5553 GB, free: 6.43 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.376e-05/0.1423, allocations: 30.75 kB / 0.5553 GB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.286e-05/0.1423, allocations: 0.9375 kB / 0.5553 GB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.1424, allocations: 160.4 kB / 0.5555 GB, free: 6.195 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.1424, allocations: 8.375 kB / 0.5555 GB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-06/0.1424, allocations: 384 / 0.5555 GB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.191e-05/0.1425, allocations: 33.83 kB / 0.5555 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.1425, allocations: 0 / 0.5555 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.1425, allocations: 0 / 0.5555 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1425, allocations: 0 / 0.5555 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.13e-05/0.1426, allocations: 11.92 kB / 0.5555 GB, free: 6.137 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.1427, allocations: 145.7 kB / 0.5557 GB, free: 5.945 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.326e-05/0.1428, allocations: 18.58 kB / 0.5557 GB, free: 5.918 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.44e-05/0.1428, allocations: 12.89 kB / 0.5557 GB, free: 5.902 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.1428, allocations: 0 / 0.5557 GB, free: 5.902 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.1428, allocations: 64.19 kB / 0.5558 GB, free: 5.824 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1428, allocations: 0 / 0.5558 GB, free: 5.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001728/0.143, allocations: 71.33 kB / 0.5558 GB, free: 5.742 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.1431, allocations: 77.11 kB / 0.5559 GB, free: 5.648 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.891e-05/0.1431, allocations: 93.94 kB / 0.556 GB, free: 5.547 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.1431, allocations: 33.7 kB / 0.556 GB, free: 5.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.927e-05/0.1432, allocations: 80.14 kB / 0.5561 GB, free: 5.426 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.1432, allocations: 0 / 0.5561 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.1432, allocations: 9.719 kB / 0.5561 GB, free: 5.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1434, allocations: 314.8 kB / 0.5564 GB, free: 5.094 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.1434, allocations: 8 kB / 0.5564 GB, free: 5.086 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.03e-06/0.1434, allocations: 0 / 0.5564 GB, free: 5.086 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.255e-05/0.1434, allocations: 68.27 kB / 0.5565 GB, free: 5.004 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1434, allocations: 0 / 0.5565 GB, free: 5.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.403e-05/0.1435, allocations: 63.34 kB / 0.5566 GB, free: 4.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.1435, allocations: 37.62 kB / 0.5566 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1435, allocations: 0 / 0.5566 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1436, allocations: 0 / 0.5566 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.1436, allocations: 0 / 0.5566 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.1436, allocations: 0 / 0.5566 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.1436, allocations: 4 kB / 0.5566 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.1436, allocations: 0 / 0.5566 GB, free: 4.883 MB / 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.763e-05/0.1437, allocations: 141.8 kB / 0.5567 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.1437, allocations: 7.938 kB / 0.5567 GB, free: 4.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.623e-06/0.1437, allocations: 3.125 kB / 0.5567 GB, free: 4.723 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1437, allocations: 3.984 kB / 0.5567 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1437, allocations: 3.984 kB / 0.5567 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1437, allocations: 0 / 0.5567 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.1438, allocations: 141.7 kB / 0.5569 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1438, allocations: 4 kB / 0.5569 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.1438, allocations: 0 / 0.5569 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1438, allocations: 7.938 kB / 0.5569 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-06/0.1438, allocations: 0 / 0.5569 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.1438, allocations: 0 / 0.5569 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1438, allocations: 3.938 kB / 0.5569 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.833e-05/0.1439, allocations: 94.77 kB / 0.557 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.144, allocations: 81.05 kB / 0.5571 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.144, allocations: 4 kB / 0.5571 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.192e-05/0.144, allocations: 7.984 kB / 0.5571 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.033e-05/0.144, allocations: 4.031 kB / 0.5571 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.144, allocations: 0 / 0.5571 GB, free: 4.281 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.676e-05/0.144, allocations: 75.28 kB / 0.5571 GB, free: 4.207 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.144, allocations: 0 / 0.5571 GB, free: 4.207 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1443, allocations: 67.8 kB / 0.5572 GB, free: 4.141 MB / 414.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007752/0.1451, allocations: 0.719 MB / 0.5579 GB, free: 3.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.1452, allocations: 63.39 kB / 0.558 GB, free: 3.316 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1452, allocations: 0 / 0.558 GB, free: 3.316 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.572e-05/0.1452, allocations: 55.41 kB / 0.558 GB, free: 3.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.1454, allocations: 10.52 kB / 0.558 GB, free: 3.242 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003361/0.1457, allocations: 138.5 kB / 0.5582 GB, free: 3.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.146, allocations: 0.6729 MB / 0.5588 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.042e-06/0.146, allocations: 0 / 0.5588 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.938e-05/0.146, allocations: 7.438 kB / 0.5588 GB, free: 2.359 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.146, allocations: 0 / 0.5588 GB, free: 2.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.169, allocations: 2.466 MB / 0.5612 GB, free: 15.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.847/8.016, allocations: 11.8 kB / 0.5613 GB, free: 15.95 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.114196346141398] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.083350067958236 8.097250811 7.952765207 Calling exit ...