Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001598/0.001598, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001413/0.001413, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.427/1.427, allocations: 230.5 MB / 258.2 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2188/0.2188, allocations: 46.94 MB / 361.6 MB, free: 4.184 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002328, allocations: 79.86 kB / 0.497 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3326, allocations: 66.08 MB / 0.5615 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.00189/0.3345, allocations: 497 kB / 0.562 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.3372, allocations: 1.812 MB / 0.5637 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.597e-05/0.3372, allocations: 0 / 0.5637 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.881e-05/0.3373, allocations: 0 / 0.5637 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.492e-06/0.3373, allocations: 0 / 0.5637 GB, free: 1.98 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001107/0.3384, allocations: 267.1 kB / 0.564 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.969e-05/0.3384, allocations: 0 / 0.564 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.3385, allocations: 4 kB / 0.564 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.781e-05/0.3385, allocations: 3.984 kB / 0.564 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.865e-05/0.3385, allocations: 0 / 0.564 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.3385, allocations: 0 / 0.564 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009542/0.3395, allocations: 0.4951 MB / 0.5645 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.531e-05/0.3395, allocations: 7.984 kB / 0.5645 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.349e-05/0.3395, allocations: 4 kB / 0.5645 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000515/0.34, allocations: 317.1 kB / 0.5648 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.34, allocations: 0 / 0.5648 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.34, allocations: 4 kB / 0.5648 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.34, allocations: 0 / 0.5648 GB, free: 0.8906 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.0004246/0.3405, allocations: 315.7 kB / 0.5651 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3405, allocations: 8.031 kB / 0.5651 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.643e-05/0.3405, allocations: 30.75 kB / 0.5651 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.3406, allocations: 0.9375 kB / 0.5651 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.757e-05/0.3407, allocations: 106.5 kB / 0.5652 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.3407, allocations: 4.312 kB / 0.5652 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.3407, allocations: 4.359 kB / 0.5652 GB, free: 372 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.3408, allocations: 46.83 kB / 0.5653 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-06/0.3408, allocations: 0 / 0.5653 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-06/0.3408, allocations: 0 / 0.5653 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.3408, allocations: 3.938 kB / 0.5653 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.926e-05/0.3408, allocations: 0 / 0.5653 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.341, allocations: 116.8 kB / 0.5654 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.919e-05/0.341, allocations: 14.58 kB / 0.5654 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.437e-05/0.341, allocations: 12.86 kB / 0.5654 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.3411, allocations: 3.938 kB / 0.5654 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.163e-05/0.3411, allocations: 72.28 kB / 0.5655 GB, free: 24 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3411, allocations: 0 / 0.5655 GB, free: 24 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002141/0.3413, allocations: 63.34 kB / 0.5656 GB, free: 15.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.3414, allocations: 77.11 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.303e-05/0.3415, allocations: 93.81 kB / 0.5657 GB, free: 15.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.3415, allocations: 25.7 kB / 0.5658 GB, free: 15.72 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.434e-05/0.3415, allocations: 88.27 kB / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.3415, allocations: 0 / 0.5658 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.3416, allocations: 21.7 kB / 0.5659 GB, free: 15.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3417, allocations: 310.8 kB / 0.5662 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.145e-05/0.3417, allocations: 0 / 0.5662 GB, free: 15.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.926e-06/0.3417, allocations: 4 kB / 0.5662 GB, free: 15.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.406e-05/0.3418, allocations: 60.2 kB / 0.5662 GB, free: 15.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3418, allocations: 4.062 kB / 0.5662 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.166e-05/0.3419, allocations: 67.39 kB / 0.5663 GB, free: 15.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.3419, allocations: 37.64 kB / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3419, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3419, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3419, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.3419, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.551e-05/0.342, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.342, allocations: 0 / 0.5663 GB, free: 15.09 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.705e-05/0.3421, allocations: 139.6 kB / 0.5665 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.125e-05/0.3421, allocations: 7.922 kB / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.453e-05/0.3421, allocations: 3 kB / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.01e-07/0.3421, allocations: 0 / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3421, allocations: 4 kB / 0.5665 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.3421, allocations: 0 / 0.5665 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.536e-05/0.3422, allocations: 116.8 kB / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.3422, allocations: 0 / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3422, allocations: 0 / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3422, allocations: 7.875 kB / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-06/0.3422, allocations: 7.984 kB / 0.5666 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.3422, allocations: 4 kB / 0.5666 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3422, allocations: 3.938 kB / 0.5666 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.3423, allocations: 90.78 kB / 0.5667 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.406e-06/0.3423, allocations: 7.922 kB / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.3423, allocations: 0 / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.3423, allocations: 0 / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.609e-05/0.3424, allocations: 4 kB / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.3424, allocations: 4.031 kB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.48e-05/0.3424, allocations: 75.28 kB / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3424, allocations: 0 / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002834/0.3427, allocations: 67.8 kB / 0.5668 GB, free: 14.47 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.0007299/0.3434, allocations: 0.7172 MB / 0.5675 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.547e-05/0.3435, allocations: 63.39 kB / 0.5676 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3435, allocations: 0 / 0.5676 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.648e-05/0.3435, allocations: 55.41 kB / 0.5677 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001165/0.3437, allocations: 0 / 0.5677 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003179/0.344, allocations: 142.6 kB / 0.5678 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.3443, allocations: 0.6729 MB / 0.5684 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.159e-06/0.3443, allocations: 0 / 0.5684 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.478e-05/0.3443, allocations: 15.31 kB / 0.5685 GB, free: 12.69 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3443, allocations: 4 kB / 0.5685 GB, free: 12.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.3668, allocations: 2.479 MB / 0.5709 GB, free: 10.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/8.083, allocations: 7.5 kB / 0.5709 GB, free: 10.27 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.777085653040558] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.152539941016585 8.169528139 7.826267153 Calling exit ...