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.001156/0.001156, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001285, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2141/0.2141, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 75.88 kB / 480.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3621, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.002011/0.3641, allocations: 491.6 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.3669, allocations: 1.798 MB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.755e-05/0.367, allocations: 0 / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.367, allocations: 0 / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.367, allocations: 1.125 kB / 0.5327 GB, free: 11.62 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.001192/0.3682, allocations: 227.5 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.344e-05/0.3683, allocations: 5.266 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.208e-05/0.3683, allocations: 5.547 kB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.809e-05/0.3684, allocations: 4.938 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.84e-05/0.3684, allocations: 3.984 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.742e-06/0.3684, allocations: 1.188 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007537/0.3691, allocations: 411.7 kB / 0.5334 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.177e-05/0.3692, allocations: 3.984 kB / 0.5334 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.3692, allocations: 1.688 kB / 0.5334 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00067/0.3699, allocations: 298.2 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3699, allocations: 0 / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3699, allocations: 4 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.3699, allocations: 5.312 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.0004948/0.3704, allocations: 383.9 kB / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3705, allocations: 9.625 kB / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.908e-05/0.3705, allocations: 32.12 kB / 0.5341 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.3705, allocations: 4.875 kB / 0.5341 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.3707, allocations: 164.4 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.3707, allocations: 1.75 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.3707, allocations: 384 / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.3708, allocations: 44.5 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.3708, allocations: 0 / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.3708, allocations: 1.375 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3708, allocations: 0 / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.125e-05/0.3709, allocations: 1.375 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.3711, allocations: 151 kB / 0.5344 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.627e-05/0.3711, allocations: 15.95 kB / 0.5344 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.034e-05/0.3711, allocations: 10.23 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/0.3711, allocations: 5.312 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/0.3712, allocations: 61.58 kB / 0.5345 GB, free: 10.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.3712, allocations: 0 / 0.5345 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002043/0.3714, allocations: 66.27 kB / 0.5346 GB, free: 9.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.3715, allocations: 78.48 kB / 0.5346 GB, free: 9.891 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.017e-05/0.3716, allocations: 97.75 kB / 0.5347 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.3716, allocations: 25.7 kB / 0.5348 GB, free: 9.754 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.058e-05/0.3716, allocations: 85.64 kB / 0.5348 GB, free: 9.668 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.3716, allocations: 0 / 0.5348 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.3717, allocations: 12.47 kB / 0.5348 GB, free: 9.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3718, allocations: 310.8 kB / 0.5351 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.222e-05/0.3718, allocations: 1.375 kB / 0.5351 GB, free: 9.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-06/0.3718, allocations: 5.312 kB / 0.5351 GB, free: 9.336 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.381e-05/0.3719, allocations: 67 kB / 0.5352 GB, free: 9.258 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3719, allocations: 4.062 kB / 0.5352 GB, free: 9.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.935e-05/0.372, allocations: 58.28 kB / 0.5353 GB, free: 9.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.3721, allocations: 37.8 kB / 0.5353 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3721, allocations: 1.375 kB / 0.5353 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3721, allocations: 0 / 0.5353 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.91e-06/0.3721, allocations: 3.984 kB / 0.5353 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.3721, allocations: 1.375 kB / 0.5353 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.671e-05/0.3721, allocations: 0 / 0.5353 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.3721, allocations: 1.375 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 9.959e-05/0.3723, allocations: 142.3 kB / 0.5355 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.3723, allocations: 3.938 kB / 0.5355 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.075e-05/0.3723, allocations: 8.438 kB / 0.5355 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.3723, allocations: 0 / 0.5355 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3723, allocations: 0 / 0.5355 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3723, allocations: 0 / 0.5355 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.3724, allocations: 152.4 kB / 0.5356 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3724, allocations: 3.938 kB / 0.5356 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.3724, allocations: 0 / 0.5356 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.3725, allocations: 3.938 kB / 0.5356 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3725, allocations: 5.375 kB / 0.5356 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3725, allocations: 0 / 0.5356 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3725, allocations: 1.375 kB / 0.5356 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.3726, allocations: 89.83 kB / 0.5357 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.3726, allocations: 81.05 kB / 0.5358 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.3727, allocations: 1.375 kB / 0.5358 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.3727, allocations: 0 / 0.5358 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.837e-05/0.3727, allocations: 1.375 kB / 0.5358 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.3727, allocations: 9.344 kB / 0.5358 GB, free: 8.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.265e-05/0.3727, allocations: 75.28 kB / 0.5359 GB, free: 8.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.974e-06/0.3728, allocations: 0 / 0.5359 GB, free: 8.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.3731, allocations: 73.23 kB / 0.5359 GB, free: 8.48 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.0007969/0.3739, allocations: 0.71 MB / 0.5366 GB, free: 7.805 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.346e-05/0.3741, allocations: 55.53 kB / 0.5367 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3741, allocations: 1.375 kB / 0.5367 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.3741, allocations: 62.08 kB / 0.5367 GB, free: 7.672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.3742, allocations: 5.438 kB / 0.5368 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000342/0.3746, allocations: 141.7 kB / 0.5369 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002196/0.3748, allocations: 0.6703 MB / 0.5375 GB, free: 6.812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.154e-06/0.3748, allocations: 0 / 0.5375 GB, free: 6.812 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.532e-05/0.3748, allocations: 7.438 kB / 0.5375 GB, free: 6.805 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3749, allocations: 5.312 kB / 0.5376 GB, free: 6.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02077/0.3956, allocations: 2.454 MB / 0.5399 GB, free: 5.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.172/7.568, allocations: 1.906 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1)