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.001225/0.001225, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001304/0.001304, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.354/1.354, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.211/0.211, allocations: 46.92 MB / 361.6 MB, free: 4.184 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002148/0.002148, allocations: 79.88 kB / 0.497 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2897, allocations: 66.08 MB / 0.5615 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001617/0.2913, allocations: 0.4931 MB / 0.562 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.2939, allocations: 1.809 MB / 0.5637 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.539e-05/0.2939, allocations: 0 / 0.5637 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.264e-05/0.2939, allocations: 3.938 kB / 0.5637 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.019e-06/0.2939, allocations: 0 / 0.5637 GB, free: 1.98 MB / 398.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.001002/0.2949, allocations: 267.1 kB / 0.564 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.414e-05/0.295, allocations: 0 / 0.564 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.179e-05/0.295, allocations: 0 / 0.564 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.261e-05/0.295, allocations: 0 / 0.564 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.703e-05/0.295, allocations: 8 kB / 0.564 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.809e-06/0.295, allocations: 0 / 0.564 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008001/0.2958, allocations: 0.499 MB / 0.5645 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.512e-06/0.2958, allocations: 4 kB / 0.5645 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.554e-05/0.2959, allocations: 0 / 0.5645 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004474/0.2963, allocations: 321 kB / 0.5648 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2963, allocations: 0 / 0.5648 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2963, allocations: 0 / 0.5648 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.2963, allocations: 0 / 0.5648 GB, free: 0.8945 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.0004119/0.2967, allocations: 311.7 kB / 0.5651 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.2968, allocations: 8.031 kB / 0.5651 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.383e-05/0.2968, allocations: 8.125 kB / 0.5651 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.2968, allocations: 34.75 kB / 0.5651 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.287e-05/0.2968, allocations: 0.9375 kB / 0.5651 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.816e-05/0.2969, allocations: 103.6 kB / 0.5652 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.2969, allocations: 384 / 0.5652 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.2969, allocations: 4.375 kB / 0.5652 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.189e-05/0.297, allocations: 33.62 kB / 0.5653 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.211e-06/0.297, allocations: 0 / 0.5653 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.297, allocations: 0 / 0.5653 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.297, allocations: 3.984 kB / 0.5653 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.544e-05/0.297, allocations: 8 kB / 0.5653 GB, free: 324 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.2972, allocations: 116.8 kB / 0.5654 GB, free: 164 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.148e-05/0.2972, allocations: 22.55 kB / 0.5654 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.2972, allocations: 8.797 kB / 0.5654 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.2972, allocations: 3.938 kB / 0.5654 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.119e-05/0.2973, allocations: 60.25 kB / 0.5655 GB, free: 40 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.2973, allocations: 0 / 0.5655 GB, free: 40 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001862/0.2975, allocations: 71.41 kB / 0.5656 GB, free: 15.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.2975, allocations: 81.11 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.436e-05/0.2976, allocations: 93.81 kB / 0.5657 GB, free: 15.76 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.2976, allocations: 25.7 kB / 0.5658 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.426e-05/0.2976, allocations: 80.14 kB / 0.5658 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.321e-05/0.2976, allocations: 0 / 0.5658 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.2977, allocations: 29.64 kB / 0.5659 GB, free: 15.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.2978, allocations: 311 kB / 0.5662 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.216e-06/0.2978, allocations: 4 kB / 0.5662 GB, free: 15.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.338e-06/0.2978, allocations: 0 / 0.5662 GB, free: 15.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.843e-05/0.2979, allocations: 60.27 kB / 0.5662 GB, free: 15.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2979, allocations: 0 / 0.5662 GB, free: 15.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.489e-05/0.298, allocations: 71.27 kB / 0.5663 GB, free: 15.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.298, allocations: 33.7 kB / 0.5663 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.298, allocations: 0 / 0.5663 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.919e-06/0.298, allocations: 0 / 0.5663 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.298, allocations: 8.094 kB / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.298, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.34e-05/0.298, allocations: 0 / 0.5663 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.298, allocations: 4 kB / 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 8.776e-05/0.2981, allocations: 136.9 kB / 0.5665 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.2981, allocations: 3.938 kB / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.059e-05/0.2981, allocations: 6.984 kB / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.2981, allocations: 0 / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2982, allocations: 0 / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.2982, allocations: 4 kB / 0.5665 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.2983, allocations: 116.8 kB / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.2983, allocations: 0 / 0.5666 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.325e-06/0.2983, allocations: 3.938 kB / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.2983, allocations: 0 / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.2983, allocations: 0 / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.2983, allocations: 3.984 kB / 0.5666 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2983, allocations: 7.938 kB / 0.5666 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.356e-05/0.2984, allocations: 94.77 kB / 0.5667 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.486e-05/0.2984, allocations: 11.94 kB / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.2984, allocations: 3.984 kB / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.2984, allocations: 0 / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.2985, allocations: 0 / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.2985, allocations: 0 / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.062e-05/0.2985, allocations: 75.28 kB / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2985, allocations: 4 kB / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003044/0.2988, allocations: 63.8 kB / 0.5668 GB, free: 14.48 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.0007862/0.2996, allocations: 0.7069 MB / 0.5675 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.688e-05/0.2997, allocations: 71.36 kB / 0.5676 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2997, allocations: 0 / 0.5676 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.425e-05/0.2997, allocations: 55.41 kB / 0.5676 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001139/0.2998, allocations: 4 kB / 0.5677 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003232/0.3002, allocations: 134.5 kB / 0.5678 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.3004, allocations: 0.669 MB / 0.5684 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.094e-06/0.3004, allocations: 3.984 kB / 0.5684 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.867e-05/0.3005, allocations: 7.562 kB / 0.5684 GB, free: 12.71 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3005, allocations: 4 kB / 0.5685 GB, free: 12.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02118/0.3216, allocations: 2.618 MB / 0.571 GB, free: 10.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.76, allocations: 11.48 kB / 0.571 GB, free: 10.18 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.425820445001591] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 10.918890061031561 10.945294826 10.644131483 Calling exit ...