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.001252/0.001252, allocations: 121 kB / 18.5 MB, free: 4.562 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.001324/0.001324, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.492/1.492, allocations: 230.6 MB / 254.8 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.2185/0.2185, allocations: 44.9 MB / 355.8 MB, free: 12.33 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="cs",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.001972/0.001972, allocations: 59.91 kB / 0.4885 GB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1378, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001691/0.1395, allocations: 0.4892 MB / 0.5529 GB, free: 9.676 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1422, allocations: 1.808 MB / 0.5547 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.332e-05/0.1422, allocations: 0 / 0.5547 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.659e-05/0.1422, allocations: 0 / 0.5547 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 8.246e-06/0.1422, allocations: 0 / 0.5547 GB, free: 7.848 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.001068/0.1433, allocations: 227.3 kB / 0.5549 GB, free: 7.625 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.564e-05/0.1433, allocations: 7.984 kB / 0.5549 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.573e-05/0.1434, allocations: 0 / 0.5549 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.593e-05/0.1434, allocations: 3.938 kB / 0.5549 GB, free: 7.613 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.09e-05/0.1434, allocations: 11.98 kB / 0.5549 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.17e-06/0.1434, allocations: 0 / 0.5549 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006892/0.1441, allocations: 431.1 kB / 0.5553 GB, free: 7.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.016e-05/0.1441, allocations: 4 kB / 0.5553 GB, free: 7.176 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.674e-05/0.1441, allocations: 0 / 0.5553 GB, free: 7.176 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004402/0.1446, allocations: 303.6 kB / 0.5556 GB, free: 6.879 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1446, allocations: 0 / 0.5556 GB, free: 6.879 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1446, allocations: 3.938 kB / 0.5556 GB, free: 6.875 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1446, allocations: 4 kB / 0.5556 GB, free: 6.871 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.0004646/0.145, allocations: 384.7 kB / 0.556 GB, free: 6.441 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.1451, allocations: 8.031 kB / 0.556 GB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.404e-05/0.1451, allocations: 4.188 kB / 0.556 GB, free: 6.43 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.058e-05/0.1451, allocations: 34.75 kB / 0.556 GB, free: 6.387 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.313e-05/0.1452, allocations: 0.9375 kB / 0.556 GB, free: 6.387 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.1453, allocations: 164.4 kB / 0.5562 GB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.1453, allocations: 8.312 kB / 0.5562 GB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.1453, allocations: 384 / 0.5562 GB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.337e-05/0.1454, allocations: 29.64 kB / 0.5562 GB, free: 6.145 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.1454, allocations: 4 kB / 0.5562 GB, free: 6.141 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1454, allocations: 0 / 0.5562 GB, free: 6.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1454, allocations: 0 / 0.5562 GB, free: 6.141 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.669e-05/0.1454, allocations: 4 kB / 0.5562 GB, free: 6.137 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.1456, allocations: 145.7 kB / 0.5564 GB, free: 5.945 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.314e-05/0.1456, allocations: 26.55 kB / 0.5564 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.604e-05/0.1457, allocations: 4.859 kB / 0.5564 GB, free: 5.902 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-06/0.1457, allocations: 3.938 kB / 0.5564 GB, free: 5.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.102e-05/0.1457, allocations: 60.33 kB / 0.5565 GB, free: 5.824 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1457, allocations: 4 kB / 0.5565 GB, free: 5.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002022/0.1459, allocations: 67.33 kB / 0.5565 GB, free: 5.742 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.201e-05/0.146, allocations: 81.11 kB / 0.5566 GB, free: 5.645 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.698e-05/0.146, allocations: 93.81 kB / 0.5567 GB, free: 5.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.1461, allocations: 29.64 kB / 0.5567 GB, free: 5.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.1461, allocations: 80.14 kB / 0.5568 GB, free: 5.426 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.1461, allocations: 0 / 0.5568 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.213e-05/0.1462, allocations: 13.72 kB / 0.5568 GB, free: 5.406 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1463, allocations: 315 kB / 0.5571 GB, free: 5.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.005e-05/0.1463, allocations: 3.938 kB / 0.5571 GB, free: 5.086 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.885e-06/0.1463, allocations: 3.984 kB / 0.5571 GB, free: 5.082 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.096e-05/0.1464, allocations: 64.27 kB / 0.5572 GB, free: 5.004 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1464, allocations: 0 / 0.5572 GB, free: 5.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.662e-05/0.1465, allocations: 63.34 kB / 0.5572 GB, free: 4.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.1465, allocations: 29.7 kB / 0.5573 GB, free: 4.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.1465, allocations: 7.984 kB / 0.5573 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1465, allocations: 8.078 kB / 0.5573 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1465, allocations: 0 / 0.5573 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.1466, allocations: 0 / 0.5573 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.599e-05/0.1466, allocations: 0 / 0.5573 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.1466, allocations: 0 / 0.5573 GB, free: 4.879 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 0.0001162/0.1467, allocations: 141.7 kB / 0.5574 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.679e-06/0.1467, allocations: 3.938 kB / 0.5574 GB, free: 4.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.175e-05/0.1467, allocations: 7.125 kB / 0.5574 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1467, allocations: 0 / 0.5574 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1467, allocations: 4 kB / 0.5574 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1467, allocations: 4 kB / 0.5574 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.1469, allocations: 145.7 kB / 0.5576 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1469, allocations: 0 / 0.5576 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-06/0.1469, allocations: 7.938 kB / 0.5576 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1469, allocations: 0 / 0.5576 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.1469, allocations: 0 / 0.5576 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.1469, allocations: 4 kB / 0.5576 GB, free: 4.508 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1469, allocations: 0 / 0.5576 GB, free: 4.508 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.147, allocations: 90.83 kB / 0.5577 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.1471, allocations: 81.05 kB / 0.5577 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.1471, allocations: 4 kB / 0.5578 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.1471, allocations: 3.938 kB / 0.5578 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.551e-05/0.1471, allocations: 0 / 0.5578 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.1471, allocations: 3.938 kB / 0.5578 GB, free: 4.285 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.783e-05/0.1472, allocations: 79.27 kB / 0.5578 GB, free: 4.207 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1472, allocations: 0 / 0.5578 GB, free: 4.207 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.1475, allocations: 67.81 kB / 0.5579 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.0008436/0.1483, allocations: 0.7162 MB / 0.5586 GB, free: 3.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001134/0.1484, allocations: 63.41 kB / 0.5587 GB, free: 3.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1484, allocations: 0 / 0.5587 GB, free: 3.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.78e-05/0.1485, allocations: 63.33 kB / 0.5587 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.1486, allocations: 0 / 0.5587 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003694/0.149, allocations: 138.5 kB / 0.5589 GB, free: 3.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.1493, allocations: 0.6729 MB / 0.5595 GB, free: 2.371 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.58e-06/0.1493, allocations: 3.938 kB / 0.5595 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.48e-05/0.1493, allocations: 11.56 kB / 0.5595 GB, free: 2.355 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1493, allocations: 0 / 0.5595 GB, free: 2.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01987/0.1692, allocations: 2.505 MB / 0.562 GB, free: 15.94 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.183, allocations: 7.984 kB / 0.562 GB, free: 15.93 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.171444648003671] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.308557448966894 8.329265643 8.180938554 Calling exit ...