Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 117.7 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 183.1 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2163/0.2163, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001823, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3434, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001416/0.3449, allocations: 493.4 kB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.347, allocations: 1.756 MB / 0.5206 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.775e-05/0.347, allocations: 0 / 0.5206 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.347, allocations: 0 / 0.5206 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.347, allocations: 0 / 0.5206 GB, free: 1.738 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0009679/0.348, allocations: 235.9 kB / 0.5208 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.63e-05/0.3481, allocations: 5.062 kB / 0.5208 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.768e-05/0.3481, allocations: 2.062 kB / 0.5208 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.434e-05/0.3481, allocations: 1.156 kB / 0.5208 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.911e-05/0.3481, allocations: 1.656 kB / 0.5208 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.3482, allocations: 0 / 0.5208 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006579/0.3488, allocations: 410.9 kB / 0.5212 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-06/0.3488, allocations: 0 / 0.5212 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.813e-05/0.3489, allocations: 9.344 kB / 0.5212 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004677/0.3493, allocations: 302.1 kB / 0.5215 GB, free: 1.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3493, allocations: 0.7031 kB / 0.5215 GB, free: 1.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3494, allocations: 1.188 kB / 0.5215 GB, free: 1.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3494, allocations: 0 / 0.5215 GB, free: 1.43 MB / 382.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.0003138/0.3497, allocations: 390.8 kB / 0.5219 GB, free: 1.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3497, allocations: 9.062 kB / 0.5219 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.991e-05/0.3498, allocations: 32.3 kB / 0.5219 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.348e-05/0.3498, allocations: 2.125 kB / 0.5219 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.288e-05/0.3498, allocations: 169.7 kB / 0.5221 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.3499, allocations: 4.375 kB / 0.5221 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-06/0.3499, allocations: 1.469 kB / 0.5221 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.496e-05/0.3499, allocations: 33.25 kB / 0.5221 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.35, allocations: 0.9375 kB / 0.5221 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.35, allocations: 0.7969 kB / 0.5221 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.35, allocations: 1.188 kB / 0.5221 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.589e-05/0.35, allocations: 1.062 kB / 0.5221 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.214e-05/0.3501, allocations: 148.2 kB / 0.5223 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.57e-05/0.3501, allocations: 24.66 kB / 0.5223 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.17e-05/0.3502, allocations: 6.703 kB / 0.5223 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.3502, allocations: 1.625 kB / 0.5223 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.3502, allocations: 60.91 kB / 0.5224 GB, free: 440 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3502, allocations: 1.812 kB / 0.5224 GB, free: 440 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000146/0.3504, allocations: 63.89 kB / 0.5224 GB, free: 372 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.3504, allocations: 79.39 kB / 0.5225 GB, free: 276 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.773e-05/0.3504, allocations: 94.47 kB / 0.5226 GB, free: 172 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-06/0.3504, allocations: 25.7 kB / 0.5226 GB, free: 140 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.969e-06/0.3504, allocations: 85.3 kB / 0.5227 GB, free: 52 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.592e-05/0.3505, allocations: 0 / 0.5227 GB, free: 52 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.333e-05/0.3505, allocations: 12.5 kB / 0.5227 GB, free: 36 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3506, allocations: 312.9 kB / 0.523 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.121e-05/0.3507, allocations: 4.844 kB / 0.523 GB, free: 15.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.342e-06/0.3507, allocations: 1.656 kB / 0.523 GB, free: 15.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.589e-05/0.3507, allocations: 63.95 kB / 0.5231 GB, free: 15.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3507, allocations: 0 / 0.5231 GB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.294e-05/0.3508, allocations: 64.62 kB / 0.5231 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.3509, allocations: 35.72 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.3509, allocations: 1.031 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.3509, allocations: 0.75 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.919e-06/0.3509, allocations: 1.25 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.3509, allocations: 3.938 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.639e-05/0.3509, allocations: 1.891 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.3509, allocations: 4 kB / 0.5232 GB, free: 15.54 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 0.0001045/0.3511, allocations: 138.5 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.3511, allocations: 9.734 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.348e-06/0.3511, allocations: 4.062 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3511, allocations: 0.7969 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3511, allocations: 0.8125 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.3511, allocations: 0 / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.3512, allocations: 146 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3512, allocations: 4 kB / 0.5235 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3512, allocations: 7.938 kB / 0.5235 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3513, allocations: 5.672 kB / 0.5235 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.3513, allocations: 1.906 kB / 0.5235 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3513, allocations: 0 / 0.5235 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3513, allocations: 0.7969 kB / 0.5235 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/0.3514, allocations: 88 kB / 0.5236 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.3514, allocations: 83.12 kB / 0.5237 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.3515, allocations: 5.125 kB / 0.5237 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-06/0.3515, allocations: 4.734 kB / 0.5237 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.3515, allocations: 1.125 kB / 0.5237 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.3515, allocations: 1.156 kB / 0.5237 GB, free: 14.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.67e-05/0.3515, allocations: 76.08 kB / 0.5237 GB, free: 14.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3515, allocations: 0 / 0.5237 GB, free: 14.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.3519, allocations: 67.08 kB / 0.5238 GB, free: 14.88 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.0007543/0.3526, allocations: 0.7191 MB / 0.5245 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.3527, allocations: 61.94 kB / 0.5246 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3528, allocations: 4.094 kB / 0.5246 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.693e-05/0.3528, allocations: 56.42 kB / 0.5246 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.3529, allocations: 2.156 kB / 0.5246 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003229/0.3533, allocations: 133.5 kB / 0.5248 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.3536, allocations: 0.6746 MB / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.262e-06/0.3536, allocations: 0.6094 kB / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.545e-05/0.3536, allocations: 8.531 kB / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3536, allocations: 0 / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.3772, allocations: 2.458 MB / 0.5278 GB, free: 12.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.792/8.17, allocations: 5.062 kB / 0.5278 GB, free: 12.38 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1)