Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001594/0.001594, 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.001935/0.001935, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.514/1.514, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2227/0.2227, allocations: 46.92 MB / 357.1 MB, free: 10.32 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+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_1_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 67.89 kB / 0.4909 GB, free: 8.84 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1339, allocations: 65.99 MB / 0.5554 GB, free: 6.715 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001709/0.1356, allocations: 497 kB / 0.5558 GB, free: 6.227 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.1383, allocations: 1.801 MB / 0.5576 GB, free: 4.406 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.904e-05/0.1383, allocations: 7.875 kB / 0.5576 GB, free: 4.398 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.1383, allocations: 0 / 0.5576 GB, free: 4.398 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 6.502e-06/0.1383, allocations: 0 / 0.5576 GB, free: 4.398 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001033/0.1393, allocations: 231.3 kB / 0.5578 GB, free: 4.172 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 5.575e-05/0.1394, allocations: 8 kB / 0.5578 GB, free: 4.164 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.87e-05/0.1394, allocations: 0 / 0.5578 GB, free: 4.164 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.005e-05/0.1394, allocations: 0 / 0.5578 GB, free: 4.164 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.886e-05/0.1395, allocations: 3.984 kB / 0.5578 GB, free: 4.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.29e-06/0.1395, allocations: 4 kB / 0.5578 GB, free: 4.156 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006785/0.1401, allocations: 427.2 kB / 0.5582 GB, free: 3.738 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-06/0.1402, allocations: 0 / 0.5582 GB, free: 3.738 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.1402, allocations: 3.938 kB / 0.5582 GB, free: 3.734 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004484/0.1406, allocations: 307.2 kB / 0.5585 GB, free: 3.434 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1406, allocations: 0 / 0.5585 GB, free: 3.434 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1406, allocations: 4 kB / 0.5585 GB, free: 3.43 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1406, allocations: 0 / 0.5585 GB, free: 3.43 MB / 462.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.0004533/0.1411, allocations: 390.5 kB / 0.5589 GB, free: 2.996 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.1411, allocations: 12.03 kB / 0.5589 GB, free: 2.984 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.354e-05/0.1412, allocations: 30.75 kB / 0.559 GB, free: 2.945 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.244e-05/0.1412, allocations: 0.9375 kB / 0.559 GB, free: 2.945 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.1413, allocations: 160.4 kB / 0.5591 GB, free: 2.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.373e-06/0.1413, allocations: 384 / 0.5591 GB, free: 2.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.1413, allocations: 8.312 kB / 0.5591 GB, free: 2.742 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.474e-05/0.1414, allocations: 41.75 kB / 0.5592 GB, free: 2.695 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.1414, allocations: 0 / 0.5592 GB, free: 2.695 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.1414, allocations: 0 / 0.5592 GB, free: 2.695 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.1414, allocations: 3.938 kB / 0.5592 GB, free: 2.691 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.671e-05/0.1414, allocations: 4 kB / 0.5592 GB, free: 2.688 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001944/0.1416, allocations: 149.6 kB / 0.5593 GB, free: 2.492 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.364e-05/0.1417, allocations: 18.61 kB / 0.5593 GB, free: 2.465 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.911e-05/0.1417, allocations: 8.844 kB / 0.5593 GB, free: 2.453 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.1417, allocations: 4 kB / 0.5593 GB, free: 2.449 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.1418, allocations: 64.14 kB / 0.5594 GB, free: 2.371 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1418, allocations: 0 / 0.5594 GB, free: 2.371 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001735/0.1419, allocations: 63.47 kB / 0.5595 GB, free: 2.297 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.142, allocations: 77.11 kB / 0.5595 GB, free: 2.203 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.167e-05/0.142, allocations: 97.84 kB / 0.5596 GB, free: 2.098 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.1421, allocations: 25.7 kB / 0.5597 GB, free: 2.066 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.785e-05/0.1421, allocations: 84.27 kB / 0.5597 GB, free: 1.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.1421, allocations: 0 / 0.5597 GB, free: 1.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.1421, allocations: 9.719 kB / 0.5597 GB, free: 1.965 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1423, allocations: 314.8 kB / 0.56 GB, free: 1.648 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/0.1423, allocations: 4 kB / 0.56 GB, free: 1.645 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-06/0.1423, allocations: 3.938 kB / 0.5601 GB, free: 1.641 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.814e-05/0.1424, allocations: 60.27 kB / 0.5601 GB, free: 1.566 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1424, allocations: 0 / 0.5601 GB, free: 1.566 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.009e-05/0.1424, allocations: 67.45 kB / 0.5602 GB, free: 1.488 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.1425, allocations: 33.64 kB / 0.5602 GB, free: 1.449 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1425, allocations: 0 / 0.5602 GB, free: 1.449 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.1425, allocations: 0 / 0.5602 GB, free: 1.449 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.115e-06/0.1425, allocations: 4 kB / 0.5602 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.1425, allocations: 0 / 0.5602 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.57e-05/0.1425, allocations: 0 / 0.5602 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.1425, allocations: 0 / 0.5602 GB, free: 1.445 MB / 462.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.0001063/0.1426, allocations: 144.2 kB / 0.5603 GB, free: 1.289 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-06/0.1426, allocations: 7.969 kB / 0.5604 GB, free: 1.281 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.039e-05/0.1426, allocations: 3.125 kB / 0.5604 GB, free: 1.281 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1426, allocations: 0 / 0.5604 GB, free: 1.281 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1427, allocations: 3.938 kB / 0.5604 GB, free: 1.277 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1427, allocations: 0 / 0.5604 GB, free: 1.277 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/0.1428, allocations: 145.7 kB / 0.5605 GB, free: 1.086 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.1428, allocations: 7.969 kB / 0.5605 GB, free: 1.078 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1428, allocations: 3.938 kB / 0.5605 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1428, allocations: 3.938 kB / 0.5605 GB, free: 1.07 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.1428, allocations: 7.938 kB / 0.5605 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1428, allocations: 4 kB / 0.5605 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1428, allocations: 0 / 0.5605 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001036/0.1429, allocations: 90.83 kB / 0.5606 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.747e-05/0.1429, allocations: 81.05 kB / 0.5607 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.143, allocations: 4 kB / 0.5607 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.143, allocations: 0 / 0.5607 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.143, allocations: 0 / 0.5607 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.143, allocations: 4.031 kB / 0.5607 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.396e-05/0.143, allocations: 75.28 kB / 0.5608 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.143, allocations: 0 / 0.5608 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003282/0.1433, allocations: 67.8 kB / 0.5608 GB, free: 0.6992 MB / 462.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.0008219/0.1442, allocations: 0.7195 MB / 0.5615 GB, free: 15.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.1443, allocations: 55.41 kB / 0.5616 GB, free: 15.88 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1443, allocations: 4 kB / 0.5616 GB, free: 15.88 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 3.548e-05/0.1443, allocations: 51.41 kB / 0.5616 GB, free: 15.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.1444, allocations: 10.12 kB / 0.5617 GB, free: 15.81 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003552/0.1448, allocations: 150.2 kB / 0.5618 GB, free: 15.62 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.1451, allocations: 0.669 MB / 0.5624 GB, free: 14.93 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 6.452e-06/0.1451, allocations: 0 / 0.5624 GB, free: 14.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.504e-05/0.1451, allocations: 7.438 kB / 0.5625 GB, free: 14.92 MB / 478.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1451, allocations: 0 / 0.5625 GB, free: 14.92 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.1725, allocations: 2.466 MB / 0.5649 GB, free: 12.52 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.998/8.17, allocations: 17.84 kB / 0.5649 GB, free: 12.51 MB / 478.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.160378044936806] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.23972750408575 8.263535892 8.11825646 Calling exit ...