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.001198/0.001198, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2215/0.2215, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3494, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001492/0.351, allocations: 488.8 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.3533, allocations: 1.799 MB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.849e-05/0.3533, allocations: 0 / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.211e-05/0.3533, allocations: 0 / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.3533, 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.0008968/0.3542, allocations: 232 kB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.79e-05/0.3543, allocations: 10.39 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.683e-05/0.3543, allocations: 0 / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.685e-05/0.3544, allocations: 5.094 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.48e-05/0.3544, allocations: 1.281 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.34e-06/0.3544, allocations: 0 / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006135/0.355, allocations: 407.9 kB / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.796e-06/0.355, allocations: 0 / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.275e-05/0.3551, allocations: 5.375 kB / 0.5333 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.3555, allocations: 302.3 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3555, allocations: 1.281 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.3555, allocations: 0 / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.3555, allocations: 3.938 kB / 0.5336 GB, free: 11.08 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.0003951/0.3559, allocations: 382.1 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.356, allocations: 8.969 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.967e-05/0.356, allocations: 34.75 kB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.46e-05/0.356, allocations: 10.11 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.299e-05/0.3561, allocations: 168.3 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.3562, allocations: 5.906 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.3562, allocations: 384 / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.153e-05/0.3563, allocations: 32.48 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.3563, allocations: 0 / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.3563, allocations: 0 / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.3563, allocations: 5.328 kB / 0.5343 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.556e-05/0.3563, allocations: 1.406 kB / 0.5343 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.3564, allocations: 147.1 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.225e-05/0.3565, allocations: 23.64 kB / 0.5344 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.567e-05/0.3565, allocations: 9.891 kB / 0.5344 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.692e-06/0.3565, allocations: 1.219 kB / 0.5344 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.3566, allocations: 61.39 kB / 0.5345 GB, free: 10.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3566, allocations: 0 / 0.5345 GB, free: 10.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001643/0.3567, allocations: 62.98 kB / 0.5345 GB, free: 9.996 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.3568, allocations: 78.61 kB / 0.5346 GB, free: 9.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.752e-05/0.3569, allocations: 97.8 kB / 0.5347 GB, free: 9.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.3569, allocations: 25.7 kB / 0.5347 GB, free: 9.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.63e-05/0.3569, allocations: 89.48 kB / 0.5348 GB, free: 9.676 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.3569, allocations: 0 / 0.5348 GB, free: 9.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.357, allocations: 12.84 kB / 0.5348 GB, free: 9.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3571, allocations: 310.8 kB / 0.5351 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.3571, allocations: 0 / 0.5351 GB, free: 9.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.182e-06/0.3571, allocations: 5.297 kB / 0.5351 GB, free: 9.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.591e-05/0.3572, allocations: 63.7 kB / 0.5352 GB, free: 9.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3572, allocations: 1.094 kB / 0.5352 GB, free: 9.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.648e-05/0.3572, allocations: 62.31 kB / 0.5353 GB, free: 9.203 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.3573, allocations: 34.23 kB / 0.5353 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3573, allocations: 1.531 kB / 0.5353 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3573, allocations: 3.984 kB / 0.5353 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.265e-06/0.3573, allocations: 0 / 0.5353 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3573, allocations: 5.281 kB / 0.5353 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.3573, allocations: 3.938 kB / 0.5353 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.3573, allocations: 5.562 kB / 0.5353 GB, free: 9.152 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 8.894e-05/0.3574, allocations: 132.7 kB / 0.5354 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.217e-06/0.3575, allocations: 4.938 kB / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.774e-06/0.3575, allocations: 4.062 kB / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.3575, allocations: 0 / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3575, allocations: 1.031 kB / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.3575, allocations: 0 / 0.5354 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.103e-05/0.3576, allocations: 151 kB / 0.5356 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3576, allocations: 5.312 kB / 0.5356 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3576, allocations: 4 kB / 0.5356 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3576, allocations: 3.938 kB / 0.5356 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.3576, allocations: 1.375 kB / 0.5356 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.3576, allocations: 4 kB / 0.5356 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3576, allocations: 0 / 0.5356 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.414e-05/0.3577, allocations: 89.83 kB / 0.5357 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.3578, allocations: 82.42 kB / 0.5358 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.3578, allocations: 5.406 kB / 0.5358 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.3578, allocations: 3.938 kB / 0.5358 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.443e-05/0.3578, allocations: 1.375 kB / 0.5358 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.3578, allocations: 3.938 kB / 0.5358 GB, free: 8.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.501e-05/0.3579, allocations: 80.64 kB / 0.5359 GB, free: 8.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3579, allocations: 0 / 0.5359 GB, free: 8.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000292/0.3582, allocations: 60.12 kB / 0.5359 GB, free: 8.492 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.000647/0.3588, allocations: 0.7101 MB / 0.5366 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.52e-05/0.3589, allocations: 68.84 kB / 0.5367 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3589, allocations: 4.094 kB / 0.5367 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.976e-05/0.359, allocations: 59.52 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.0001314/0.3591, allocations: 4.469 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.0003015/0.3594, allocations: 133.9 kB / 0.5369 GB, free: 7.523 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.3596, allocations: 0.6703 MB / 0.5375 GB, free: 6.828 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.3596, allocations: 0 / 0.5375 GB, free: 6.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.292e-05/0.3597, allocations: 8.812 kB / 0.5375 GB, free: 6.82 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3597, allocations: 3.938 kB / 0.5375 GB, free: 6.816 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3208/0.6805, allocations: 2.464 MB / 0.5399 GB, free: 5.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.483/8.163, allocations: 7.062 kB / 0.54 GB, free: 5.426 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)