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.001102/0.001101, allocations: 117.1 kB / 17.78 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.001279/0.001278, allocations: 204.6 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.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2185/0.2185, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 75.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3285, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001413/0.33, allocations: 494.4 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.3322, allocations: 1.795 MB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.426e-05/0.3322, allocations: 0 / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.3322, allocations: 0 / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.109e-06/0.3322, allocations: 0 / 0.5327 GB, free: 11.61 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.000886/0.3331, allocations: 229.4 kB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.07e-05/0.3332, allocations: 9.359 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.736e-05/0.3332, allocations: 1.375 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.515e-05/0.3333, allocations: 3.938 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.461e-05/0.3333, allocations: 1.375 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-06/0.3333, allocations: 0 / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005712/0.3339, allocations: 412.4 kB / 0.5334 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.931e-06/0.3339, allocations: 0 / 0.5334 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.623e-05/0.3339, allocations: 1.344 kB / 0.5334 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.3343, allocations: 305.5 kB / 0.5336 GB, free: 11.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3343, allocations: 1.094 kB / 0.5336 GB, free: 11.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.997e-06/0.3343, allocations: 4 kB / 0.5336 GB, free: 11.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.3343, allocations: 3.938 kB / 0.5337 GB, free: 11.05 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.0003499/0.3347, allocations: 388.7 kB / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.3347, allocations: 9.688 kB / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.423e-05/0.3348, allocations: 32.03 kB / 0.5341 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.235e-05/0.3348, allocations: 0.9375 kB / 0.5341 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.394e-05/0.3349, allocations: 160.4 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.3349, allocations: 1.594 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.348e-06/0.3349, allocations: 1.594 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.064e-05/0.335, allocations: 39.12 kB / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.335, allocations: 1.281 kB / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.335, allocations: 0 / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.335, allocations: 0 / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.852e-05/0.3351, allocations: 10.11 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000116/0.3352, allocations: 146.8 kB / 0.5344 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.177e-05/0.3352, allocations: 16.86 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.442e-05/0.3352, allocations: 9.875 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/0.3353, allocations: 7.938 kB / 0.5344 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.3353, allocations: 61.3 kB / 0.5345 GB, free: 10.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3353, allocations: 0 / 0.5345 GB, free: 10.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001587/0.3355, allocations: 67.19 kB / 0.5346 GB, free: 9.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.3355, allocations: 78.2 kB / 0.5346 GB, free: 9.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.094e-05/0.3356, allocations: 101.7 kB / 0.5347 GB, free: 9.762 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.3356, allocations: 26.83 kB / 0.5348 GB, free: 9.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.37e-05/0.3356, allocations: 84.27 kB / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.3356, allocations: 1.062 kB / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/0.3357, allocations: 11.91 kB / 0.5349 GB, free: 9.629 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.589e-05/0.3358, allocations: 310.8 kB / 0.5351 GB, free: 9.316 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-06/0.3358, allocations: 1.156 kB / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.929e-06/0.3358, allocations: 1.156 kB / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.802e-05/0.3358, allocations: 67.58 kB / 0.5352 GB, free: 9.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3359, allocations: 64 / 0.5352 GB, free: 9.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.283e-05/0.3359, allocations: 70.11 kB / 0.5353 GB, free: 9.164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.336, allocations: 35.48 kB / 0.5353 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.336, allocations: 1.188 kB / 0.5353 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.336, allocations: 0 / 0.5353 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.336, allocations: 0 / 0.5353 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.336, allocations: 1.094 kB / 0.5353 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.336, allocations: 0 / 0.5353 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.336, allocations: 1.094 kB / 0.5353 GB, free: 9.129 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.89e-05/0.3361, allocations: 146.4 kB / 0.5355 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.759e-06/0.3361, allocations: 5.406 kB / 0.5355 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.755e-06/0.3361, allocations: 3.125 kB / 0.5355 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.3361, allocations: 0 / 0.5355 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3362, allocations: 0 / 0.5355 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3362, allocations: 1.375 kB / 0.5355 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.976e-05/0.3362, allocations: 143.1 kB / 0.5356 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.3363, allocations: 3.984 kB / 0.5356 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3363, allocations: 0 / 0.5356 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.3363, allocations: 5.375 kB / 0.5356 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.3363, allocations: 0 / 0.5356 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3363, allocations: 5.375 kB / 0.5356 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3363, allocations: 0 / 0.5356 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.131e-05/0.3364, allocations: 93.45 kB / 0.5357 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.3364, allocations: 81.05 kB / 0.5358 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3364, allocations: 1.312 kB / 0.5358 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-06/0.3365, allocations: 1.312 kB / 0.5358 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.463e-05/0.3365, allocations: 0 / 0.5358 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.3365, allocations: 9.219 kB / 0.5358 GB, free: 8.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.333e-05/0.3365, allocations: 79.22 kB / 0.5359 GB, free: 8.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3365, allocations: 1.344 kB / 0.5359 GB, free: 8.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.3368, allocations: 68.2 kB / 0.5359 GB, free: 8.461 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.0006873/0.3375, allocations: 0.7198 MB / 0.5366 GB, free: 7.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.081e-05/0.3376, allocations: 56.56 kB / 0.5367 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3376, allocations: 0 / 0.5367 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.013e-05/0.3377, allocations: 55.44 kB / 0.5367 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.3378, allocations: 1.438 kB / 0.5368 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.3381, allocations: 140.5 kB / 0.5369 GB, free: 7.496 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001909/0.3383, allocations: 0.6702 MB / 0.5375 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.01e-06/0.3383, allocations: 1.25 kB / 0.5375 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.291e-05/0.3383, allocations: 7.438 kB / 0.5375 GB, free: 6.793 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3383, allocations: 3.938 kB / 0.5376 GB, free: 6.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.3574, allocations: 2.466 MB / 0.54 GB, free: 5.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.378/7.736, allocations: 12.61 kB / 0.54 GB, free: 5.391 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)