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.001657/0.001657, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001502/0.001502, allocations: 207.2 kB / 23.73 MB, free: 4.523 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.41/1.41, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2245/0.2245, allocations: 46.97 MB / 360.9 MB, free: 4.137 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.001938/0.001938, allocations: 67.84 kB / 0.4961 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3244, allocations: 66.03 MB / 0.5606 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001747/0.3261, allocations: 0.497 MB / 0.5611 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002693/0.3288, allocations: 1.723 MB / 0.5627 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.533e-05/0.3288, allocations: 0 / 0.5627 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.3289, allocations: 0 / 0.5627 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.722e-06/0.3289, allocations: 0 / 0.5627 GB, free: 2.004 MB / 398.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.00111/0.33, allocations: 255.2 kB / 0.563 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.616e-05/0.33, allocations: 7.984 kB / 0.563 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.3301, allocations: 0 / 0.563 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.632e-05/0.3301, allocations: 0 / 0.563 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.232e-05/0.3301, allocations: 7.938 kB / 0.563 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-06/0.3301, allocations: 0 / 0.563 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008954/0.331, allocations: 467.1 kB / 0.5634 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.331, allocations: 4 kB / 0.5634 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.331, allocations: 4 kB / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005249/0.3316, allocations: 297.1 kB / 0.5637 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3316, allocations: 0 / 0.5637 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3316, allocations: 0 / 0.5637 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.3316, allocations: 0 / 0.5637 GB, free: 0.9844 MB / 398.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.0004673/0.3321, allocations: 315.6 kB / 0.564 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3321, allocations: 8.031 kB / 0.564 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.988e-05/0.3321, allocations: 30.75 kB / 0.5641 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.3322, allocations: 0.9375 kB / 0.5641 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.626e-05/0.3323, allocations: 110.5 kB / 0.5642 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.3323, allocations: 4.375 kB / 0.5642 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.3323, allocations: 384 / 0.5642 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.3324, allocations: 68.47 kB / 0.5642 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.3324, allocations: 0 / 0.5642 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.3324, allocations: 0 / 0.5642 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.3324, allocations: 0 / 0.5642 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.989e-05/0.3325, allocations: 25.7 kB / 0.5643 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.3327, allocations: 128.7 kB / 0.5644 GB, free: 184 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.026e-05/0.3327, allocations: 44.31 kB / 0.5644 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.071e-05/0.3328, allocations: 30.56 kB / 0.5645 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-06/0.3328, allocations: 7.938 kB / 0.5645 GB, free: 76 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.348e-05/0.3329, allocations: 64.27 kB / 0.5645 GB, free: 16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3329, allocations: 4 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002388/0.3331, allocations: 114.8 kB / 0.5646 GB, free: 15.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.967e-05/0.3332, allocations: 81.05 kB / 0.5647 GB, free: 15.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.467e-05/0.3332, allocations: 93.81 kB / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.3332, allocations: 25.7 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.771e-05/0.3333, allocations: 80.14 kB / 0.5649 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.3333, allocations: 7.938 kB / 0.5649 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.3333, allocations: 17.72 kB / 0.5649 GB, free: 15.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3335, allocations: 319 kB / 0.5652 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.742e-05/0.3335, allocations: 29.7 kB / 0.5653 GB, free: 15.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.371e-05/0.3335, allocations: 29.64 kB / 0.5653 GB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.576e-05/0.3336, allocations: 64.27 kB / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.3336, allocations: 0 / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.8e-05/0.3337, allocations: 89.09 kB / 0.5654 GB, free: 14.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.3337, allocations: 33.64 kB / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3337, allocations: 0 / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3338, allocations: 0 / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.3338, allocations: 4.094 kB / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3338, allocations: 4 kB / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.654e-05/0.3338, allocations: 0 / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-06/0.3338, allocations: 0 / 0.5655 GB, free: 14.89 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.0001154/0.3339, allocations: 135.5 kB / 0.5656 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.3339, allocations: 15.92 kB / 0.5656 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.143e-05/0.3339, allocations: 6.938 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3339, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3339, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3339, allocations: 0 / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.3341, allocations: 116.8 kB / 0.5658 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3341, allocations: 4 kB / 0.5658 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.3341, allocations: 0 / 0.5658 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.3341, allocations: 3.938 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.3341, allocations: 0 / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.3341, allocations: 3.984 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3341, allocations: 4 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.3343, allocations: 112.5 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.138e-05/0.3343, allocations: 7.922 kB / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.3343, allocations: 0 / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.685e-06/0.3343, allocations: 0 / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.604e-05/0.3343, allocations: 8.031 kB / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.3343, allocations: 0 / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.133e-05/0.3343, allocations: 75.28 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3343, allocations: 0 / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.3347, allocations: 75.67 kB / 0.566 GB, free: 14.24 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.0009803/0.3357, allocations: 0.7532 MB / 0.5668 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001436/0.3358, allocations: 110.8 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3358, allocations: 0 / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.04e-05/0.3359, allocations: 89.05 kB / 0.567 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.336, allocations: 6.953 kB / 0.567 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004175/0.3364, allocations: 156.2 kB / 0.5671 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.234e-05/0.3365, allocations: 55.36 kB / 0.5672 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.072e-06/0.3365, allocations: 0 / 0.5672 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.684e-05/0.3365, allocations: 7.562 kB / 0.5672 GB, free: 12.93 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3365, allocations: 4 kB / 0.5672 GB, free: 12.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02976/0.3663, allocations: 3.007 MB / 0.5701 GB, free: 10.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.07, allocations: 7.312 kB / 0.5701 GB, free: 10.04 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.743476567004109] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.176916988013545 11.194906858 10.860137625 Calling exit ...