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.001835/0.001835, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002392/0.002392, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2273/0.2273, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002206/0.002206, allocations: 75.86 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3457, allocations: 62.45 MB / 0.5306 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001572/0.3473, allocations: 496.5 kB / 0.5311 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.3498, allocations: 1.79 MB / 0.5328 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.536e-05/0.3498, allocations: 0.9375 kB / 0.5328 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.085e-05/0.3498, allocations: 0 / 0.5328 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.255e-06/0.3499, allocations: 0 / 0.5328 GB, free: 11.46 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.0009445/0.3508, allocations: 236.2 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.35e-05/0.3509, allocations: 1.25 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.039e-05/0.3509, allocations: 1.219 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.823e-05/0.3509, allocations: 9.203 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.591e-05/0.3509, allocations: 0 / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.53e-06/0.351, allocations: 0 / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006589/0.3516, allocations: 416.4 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-06/0.3516, allocations: 0 / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.646e-05/0.3517, allocations: 2.031 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004477/0.3521, allocations: 305.5 kB / 0.5338 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.3521, allocations: 0 / 0.5338 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3521, allocations: 5.469 kB / 0.5338 GB, free: 10.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3521, allocations: 0 / 0.5338 GB, free: 10.9 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.0004194/0.3526, allocations: 384 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3526, allocations: 9.625 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.405e-05/0.3527, allocations: 36.12 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.3527, allocations: 4.938 kB / 0.5342 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.3528, allocations: 160.4 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.3528, allocations: 1.75 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-06/0.3528, allocations: 384 / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.083e-05/0.3529, allocations: 36.56 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.3529, allocations: 0 / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.3529, allocations: 1.375 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.353, allocations: 0 / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.845e-05/0.353, allocations: 5.312 kB / 0.5344 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.3531, allocations: 151.1 kB / 0.5345 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.374e-05/0.3532, allocations: 19.95 kB / 0.5345 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.948e-05/0.3532, allocations: 14.16 kB / 0.5346 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.3532, allocations: 1.375 kB / 0.5346 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/0.3533, allocations: 64.19 kB / 0.5346 GB, free: 9.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3533, allocations: 1.375 kB / 0.5346 GB, free: 9.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001686/0.3534, allocations: 66.22 kB / 0.5347 GB, free: 9.816 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.3535, allocations: 82.42 kB / 0.5348 GB, free: 9.719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.804e-05/0.3536, allocations: 101.8 kB / 0.5349 GB, free: 9.609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.3536, allocations: 25.7 kB / 0.5349 GB, free: 9.578 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.375e-05/0.3536, allocations: 81.52 kB / 0.535 GB, free: 9.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.3537, allocations: 0 / 0.535 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/0.3537, allocations: 12.47 kB / 0.535 GB, free: 9.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3538, allocations: 310.8 kB / 0.5353 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.139e-05/0.3538, allocations: 5.5 kB / 0.5353 GB, free: 9.164 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-06/0.3538, allocations: 1.375 kB / 0.5353 GB, free: 9.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.794e-05/0.3539, allocations: 63.02 kB / 0.5353 GB, free: 9.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3539, allocations: 3.938 kB / 0.5353 GB, free: 9.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.609e-05/0.354, allocations: 62.27 kB / 0.5354 GB, free: 9.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.354, allocations: 35.14 kB / 0.5354 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.354, allocations: 1.375 kB / 0.5354 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.354, allocations: 0 / 0.5354 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3541, allocations: 0 / 0.5354 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.3541, allocations: 5.469 kB / 0.5354 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.576e-05/0.3541, allocations: 0 / 0.5354 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.3541, allocations: 1.375 kB / 0.5354 GB, free: 8.98 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 9.48e-05/0.3542, allocations: 136.9 kB / 0.5356 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-06/0.3542, allocations: 5.312 kB / 0.5356 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.907e-06/0.3542, allocations: 7.125 kB / 0.5356 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3542, allocations: 1.375 kB / 0.5356 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.3542, allocations: 0 / 0.5356 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3542, allocations: 0 / 0.5356 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.3544, allocations: 147.1 kB / 0.5357 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3544, allocations: 5.359 kB / 0.5357 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3544, allocations: 0 / 0.5357 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3544, allocations: 3.938 kB / 0.5357 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.3544, allocations: 1.375 kB / 0.5357 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3544, allocations: 0 / 0.5357 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3544, allocations: 5.312 kB / 0.5357 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.478e-05/0.3545, allocations: 93.83 kB / 0.5358 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.3546, allocations: 81.05 kB / 0.5359 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.3546, allocations: 1.375 kB / 0.5359 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.004e-05/0.3546, allocations: 0 / 0.5359 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.3546, allocations: 5.312 kB / 0.5359 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.3546, allocations: 9.312 kB / 0.5359 GB, free: 8.406 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.161e-05/0.3547, allocations: 75.28 kB / 0.536 GB, free: 8.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3547, allocations: 0 / 0.536 GB, free: 8.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.355, allocations: 67.92 kB / 0.5361 GB, free: 8.312 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.0007325/0.3557, allocations: 0.7134 MB / 0.5368 GB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001414/0.3558, allocations: 59.56 kB / 0.5368 GB, free: 7.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3559, allocations: 1.375 kB / 0.5368 GB, free: 7.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.287e-05/0.3559, allocations: 54.16 kB / 0.5369 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001201/0.356, allocations: 1.375 kB / 0.5369 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003178/0.3564, allocations: 133.8 kB / 0.537 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.3567, allocations: 0.6742 MB / 0.5376 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.036e-06/0.3567, allocations: 0 / 0.5376 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.028e-05/0.3567, allocations: 11.38 kB / 0.5377 GB, free: 6.645 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3567, allocations: 4.062 kB / 0.5377 GB, free: 6.641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.3809, allocations: 2.456 MB / 0.5401 GB, free: 5.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.348, allocations: 8.547 kB / 0.5401 GB, free: 5.254 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)