Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.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.001519/0.001519, allocations: 121.3 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.001711/0.001711, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.613/1.613, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.229/0.229, allocations: 46.9 MB / 357.4 MB, free: 10.49 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Math.TestPolynomials,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00227/0.00227, allocations: 79.86 kB / 0.4912 GB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1345, allocations: 65.98 MB / 0.5557 GB, free: 6.238 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001775/0.1362, allocations: 0.5028 MB / 0.5562 GB, free: 5.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002728/0.139, allocations: 1.797 MB / 0.5579 GB, free: 3.914 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.841e-05/0.139, allocations: 0 / 0.5579 GB, free: 3.914 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.214e-05/0.139, allocations: 0 / 0.5579 GB, free: 3.914 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.831e-06/0.139, allocations: 4 kB / 0.5579 GB, free: 3.91 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0009919/0.14, allocations: 227.2 kB / 0.5581 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.733e-05/0.1401, allocations: 7.969 kB / 0.5581 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.794e-05/0.1401, allocations: 8 kB / 0.5581 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.833e-05/0.1401, allocations: 0 / 0.5581 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.636e-05/0.1401, allocations: 0 / 0.5581 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.431e-06/0.1401, allocations: 4 kB / 0.5582 GB, free: 3.668 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000669/0.1408, allocations: 431.2 kB / 0.5586 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-06/0.1408, allocations: 0 / 0.5586 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.73e-05/0.1408, allocations: 0 / 0.5586 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004727/0.1413, allocations: 307.2 kB / 0.5589 GB, free: 2.945 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1413, allocations: 0 / 0.5589 GB, free: 2.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1413, allocations: 0 / 0.5589 GB, free: 2.945 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1413, allocations: 0 / 0.5589 GB, free: 2.945 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.000465/0.1418, allocations: 388.7 kB / 0.5592 GB, free: 2.512 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1418, allocations: 12.03 kB / 0.5592 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.177e-05/0.1419, allocations: 34.75 kB / 0.5593 GB, free: 2.457 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.1419, allocations: 0.9375 kB / 0.5593 GB, free: 2.457 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.142, allocations: 164.4 kB / 0.5594 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.142, allocations: 384 / 0.5594 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.928e-06/0.142, allocations: 384 / 0.5594 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.565e-05/0.1421, allocations: 33.83 kB / 0.5595 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1421, allocations: 0 / 0.5595 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.1421, allocations: 0 / 0.5595 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1422, allocations: 0 / 0.5595 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.807e-05/0.1422, allocations: 7.938 kB / 0.5595 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.1423, allocations: 149.7 kB / 0.5596 GB, free: 2.016 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.496e-05/0.1424, allocations: 22.52 kB / 0.5596 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.83e-05/0.1424, allocations: 8.953 kB / 0.5596 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.1424, allocations: 0 / 0.5596 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.156e-05/0.1425, allocations: 60.2 kB / 0.5597 GB, free: 1.898 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.1425, allocations: 0 / 0.5597 GB, free: 1.898 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001909/0.1426, allocations: 71.33 kB / 0.5598 GB, free: 1.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.1427, allocations: 81.11 kB / 0.5598 GB, free: 1.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.032e-05/0.1428, allocations: 93.81 kB / 0.5599 GB, free: 1.617 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.1428, allocations: 29.64 kB / 0.56 GB, free: 1.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.666e-05/0.1428, allocations: 80.14 kB / 0.56 GB, free: 1.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.1428, allocations: 4 kB / 0.56 GB, free: 1.496 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.1429, allocations: 9.719 kB / 0.5601 GB, free: 1.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.143, allocations: 315 kB / 0.5604 GB, free: 1.164 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.179e-05/0.143, allocations: 4 kB / 0.5604 GB, free: 1.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.091e-06/0.143, allocations: 0 / 0.5604 GB, free: 1.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.609e-05/0.1431, allocations: 68.25 kB / 0.5604 GB, free: 1.078 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1431, allocations: 0 / 0.5604 GB, free: 1.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.245e-05/0.1432, allocations: 63.33 kB / 0.5605 GB, free: 1.004 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.1432, allocations: 37.64 kB / 0.5605 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1432, allocations: 4 kB / 0.5605 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.1432, allocations: 96 / 0.5605 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.726e-06/0.1432, allocations: 7.984 kB / 0.5605 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.1432, allocations: 0 / 0.5605 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.485e-05/0.1433, allocations: 0 / 0.5605 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1433, allocations: 4 kB / 0.5605 GB, free: 0.9453 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.716e-05/0.1434, allocations: 131.5 kB / 0.5607 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.1434, allocations: 7.938 kB / 0.5607 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.474e-06/0.1434, allocations: 7.125 kB / 0.5607 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1434, allocations: 0 / 0.5607 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1434, allocations: 0 / 0.5607 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1434, allocations: 4 kB / 0.5607 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.1435, allocations: 145.7 kB / 0.5608 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1435, allocations: 0 / 0.5608 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.1435, allocations: 0 / 0.5608 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1435, allocations: 7.938 kB / 0.5608 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-06/0.1435, allocations: 0 / 0.5608 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1435, allocations: 3.938 kB / 0.5608 GB, free: 0.582 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1435, allocations: 0 / 0.5608 GB, free: 0.582 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.1436, allocations: 102.8 kB / 0.5609 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.473e-05/0.1437, allocations: 81.05 kB / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.1437, allocations: 0 / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-06/0.1437, allocations: 0 / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.84e-05/0.1437, allocations: 4 kB / 0.561 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.1437, allocations: 0 / 0.561 GB, free: 364 kB / 414.1 MB Notification: Performance of sorting global known variables: time 3.786e-05/0.1438, allocations: 75.28 kB / 0.5611 GB, free: 288 kB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1438, allocations: 0 / 0.5611 GB, free: 288 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.1441, allocations: 67.8 kB / 0.5611 GB, free: 220 kB / 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.0008334/0.1449, allocations: 0.7259 MB / 0.5619 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001121/0.145, allocations: 63.44 kB / 0.5619 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.145, allocations: 0 / 0.5619 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.646e-05/0.1451, allocations: 59.39 kB / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.1452, allocations: 2.25 kB / 0.562 GB, free: 15.31 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/0.1456, allocations: 138.5 kB / 0.5621 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.1459, allocations: 0.669 MB / 0.5628 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.095e-06/0.1459, allocations: 0 / 0.5628 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.1459, allocations: 11.44 kB / 0.5628 GB, free: 14.43 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1459, allocations: 4.125 kB / 0.5628 GB, free: 14.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.1701, allocations: 2.454 MB / 0.5652 GB, free: 12.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.081, allocations: 10.52 kB / 0.5652 GB, free: 12.03 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.114026966970414] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.152190722990781 8.177056635 8.031911904 Calling exit ...