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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2259/0.2259, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 76.16 kB / 480.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.364, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001538/0.3656, allocations: 497.2 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002294/0.3679, allocations: 1.794 MB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.457e-05/0.3679, allocations: 5.062 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.3679, allocations: 0 / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.091e-06/0.368, allocations: 0 / 0.5327 GB, free: 11.64 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.0009378/0.3689, allocations: 228.8 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.059e-05/0.369, allocations: 1.219 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.207e-05/0.369, allocations: 1.25 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.581e-05/0.369, allocations: 9.031 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.695e-05/0.3691, allocations: 1.219 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.5e-06/0.3691, allocations: 0 / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006149/0.3697, allocations: 412.2 kB / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.023e-06/0.3697, allocations: 0 / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.792e-05/0.3697, allocations: 1.469 kB / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.3701, allocations: 309.7 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3701, allocations: 1.375 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.3702, allocations: 0 / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.3702, allocations: 3.938 kB / 0.5336 GB, free: 11.07 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.0003812/0.3706, allocations: 381.8 kB / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3706, allocations: 13.61 kB / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.562e-05/0.3706, allocations: 34.75 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.004e-05/0.3707, allocations: 0.9375 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.341e-05/0.3707, allocations: 161.8 kB / 0.5342 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.968e-06/0.3708, allocations: 384 / 0.5342 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-06/0.3708, allocations: 1.75 kB / 0.5342 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.401e-05/0.3709, allocations: 32.58 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3709, allocations: 0 / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.3709, allocations: 4 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3709, allocations: 0 / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.728e-05/0.3709, allocations: 5.312 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.371, allocations: 147 kB / 0.5344 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.008e-05/0.3711, allocations: 21.33 kB / 0.5344 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.252e-05/0.3711, allocations: 6.234 kB / 0.5344 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.802e-06/0.3711, allocations: 0 / 0.5344 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.3712, allocations: 65.58 kB / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.3712, allocations: 0 / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001494/0.3713, allocations: 67.58 kB / 0.5345 GB, free: 10 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.3714, allocations: 77.11 kB / 0.5346 GB, free: 9.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.891e-05/0.3714, allocations: 97.8 kB / 0.5347 GB, free: 9.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.3714, allocations: 27.08 kB / 0.5347 GB, free: 9.773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.244e-05/0.3715, allocations: 80.14 kB / 0.5348 GB, free: 9.691 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.3715, allocations: 1.375 kB / 0.5348 GB, free: 9.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.403e-05/0.3715, allocations: 15.22 kB / 0.5348 GB, free: 9.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3716, allocations: 316.2 kB / 0.5351 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.3717, allocations: 0 / 0.5351 GB, free: 9.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.16e-06/0.3717, allocations: 1.375 kB / 0.5351 GB, free: 9.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.133e-05/0.3717, allocations: 64.39 kB / 0.5352 GB, free: 9.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3717, allocations: 0 / 0.5352 GB, free: 9.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.213e-05/0.3718, allocations: 62.22 kB / 0.5352 GB, free: 9.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.3718, allocations: 43.22 kB / 0.5353 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3718, allocations: 0 / 0.5353 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.3719, allocations: 1.375 kB / 0.5353 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.3719, allocations: 4 kB / 0.5353 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.3719, allocations: 3.984 kB / 0.5353 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.684e-05/0.3719, allocations: 5.281 kB / 0.5353 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.3719, allocations: 0 / 0.5353 GB, free: 9.16 MB / 398.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 7.939e-05/0.372, allocations: 138.2 kB / 0.5354 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.372, allocations: 5.312 kB / 0.5354 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.214e-06/0.372, allocations: 7.125 kB / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.372, allocations: 0 / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.372, allocations: 1.375 kB / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.372, allocations: 3.984 kB / 0.5355 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.91e-05/0.3721, allocations: 147.1 kB / 0.5356 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3721, allocations: 0 / 0.5356 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.3721, allocations: 1.375 kB / 0.5356 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.3722, allocations: 3.938 kB / 0.5356 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.3722, allocations: 3.984 kB / 0.5356 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3722, allocations: 1.375 kB / 0.5356 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3722, allocations: 0 / 0.5356 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.437e-05/0.3723, allocations: 97.77 kB / 0.5357 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.829e-05/0.3723, allocations: 81.05 kB / 0.5358 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.3723, allocations: 1.375 kB / 0.5358 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.132e-05/0.3724, allocations: 5.359 kB / 0.5358 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.3724, allocations: 3.984 kB / 0.5358 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.3724, allocations: 5.312 kB / 0.5358 GB, free: 8.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.61e-05/0.3724, allocations: 75.28 kB / 0.5359 GB, free: 8.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3724, allocations: 4.031 kB / 0.5359 GB, free: 8.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.3727, allocations: 65.5 kB / 0.5359 GB, free: 8.488 MB / 398.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.0006423/0.3734, allocations: 0.7121 MB / 0.5366 GB, free: 7.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.269e-05/0.3735, allocations: 68.89 kB / 0.5367 GB, free: 7.738 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3735, allocations: 0 / 0.5367 GB, free: 7.738 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.491e-05/0.3735, allocations: 54.16 kB / 0.5367 GB, free: 7.676 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.3737, allocations: 7.891 kB / 0.5367 GB, free: 7.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003115/0.374, allocations: 130 kB / 0.5369 GB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.3742, allocations: 0.6743 MB / 0.5375 GB, free: 6.828 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.3742, allocations: 0 / 0.5375 GB, free: 6.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.358e-05/0.3743, allocations: 8.812 kB / 0.5375 GB, free: 6.82 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3743, allocations: 3.938 kB / 0.5375 GB, free: 6.816 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.394, allocations: 2.466 MB / 0.54 GB, free: 5.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.466/7.86, allocations: 1.75 kB / 0.54 GB, free: 5.43 MB / 398.1 MB (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)