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.001472/0.001472, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001561/0.001561, allocations: 183.8 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.409/1.409, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2003/0.2003, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3527, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001413/0.3542, allocations: 497.2 kB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.3562, allocations: 1.755 MB / 0.5206 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.476e-05/0.3562, allocations: 0 / 0.5206 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.3563, allocations: 0 / 0.5206 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.3563, allocations: 1.406 kB / 0.5206 GB, free: 1.746 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.0009058/0.3572, allocations: 227.7 kB / 0.5208 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.419e-05/0.3572, allocations: 9.656 kB / 0.5208 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.578e-05/0.3573, allocations: 1.797 kB / 0.5208 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.3573, allocations: 1.25 kB / 0.5208 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.461e-05/0.3573, allocations: 0 / 0.5208 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-06/0.3573, allocations: 0.9688 kB / 0.5208 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006062/0.3579, allocations: 410.5 kB / 0.5212 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-06/0.358, allocations: 1.156 kB / 0.5212 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.647e-05/0.358, allocations: 5 kB / 0.5212 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.3584, allocations: 303.2 kB / 0.5215 GB, free: 1.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3585, allocations: 0 / 0.5215 GB, free: 1.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3585, allocations: 4 kB / 0.5215 GB, free: 1.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3585, allocations: 0 / 0.5215 GB, free: 1.441 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.0002886/0.3588, allocations: 390.7 kB / 0.5219 GB, free: 1.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3588, allocations: 13.97 kB / 0.5219 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.295e-05/0.3588, allocations: 31.45 kB / 0.5219 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.586e-05/0.3589, allocations: 2.125 kB / 0.5219 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.658e-05/0.3589, allocations: 161.9 kB / 0.5221 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.3589, allocations: 1.594 kB / 0.5221 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.359, allocations: 384 / 0.5221 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.939e-05/0.359, allocations: 41.52 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.359, allocations: 1.188 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.3591, allocations: 4 kB / 0.5221 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.3591, allocations: 0 / 0.5221 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.757e-05/0.3591, allocations: 1.922 kB / 0.5221 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.704e-05/0.3592, allocations: 149.2 kB / 0.5223 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.416e-05/0.3592, allocations: 20.3 kB / 0.5223 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.382e-05/0.3592, allocations: 7.703 kB / 0.5223 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.515e-06/0.3593, allocations: 4 kB / 0.5223 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.3593, allocations: 61.98 kB / 0.5224 GB, free: 448 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3593, allocations: 0 / 0.5224 GB, free: 448 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001396/0.3594, allocations: 69.22 kB / 0.5224 GB, free: 376 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.3595, allocations: 78.77 kB / 0.5225 GB, free: 280 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.299e-05/0.3595, allocations: 89.86 kB / 0.5226 GB, free: 180 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-06/0.3595, allocations: 26.77 kB / 0.5226 GB, free: 148 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.688e-06/0.3596, allocations: 84.88 kB / 0.5227 GB, free: 60 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.431e-05/0.3596, allocations: 1.156 kB / 0.5227 GB, free: 60 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.296e-05/0.3596, allocations: 12.8 kB / 0.5227 GB, free: 44 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3597, allocations: 315.6 kB / 0.523 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.128e-05/0.3597, allocations: 1.219 kB / 0.523 GB, free: 15.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.071e-06/0.3597, allocations: 1.672 kB / 0.523 GB, free: 15.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.482e-05/0.3598, allocations: 60.72 kB / 0.5231 GB, free: 15.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3598, allocations: 0 / 0.5231 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.648e-05/0.3599, allocations: 72.05 kB / 0.5231 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.3599, allocations: 35.7 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3599, allocations: 1.344 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.3599, allocations: 0 / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.643e-06/0.3599, allocations: 0.7969 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.36, allocations: 1.281 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.465e-05/0.36, allocations: 0 / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.36, allocations: 0.875 kB / 0.5232 GB, free: 15.55 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.908e-05/0.3601, allocations: 142.9 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/0.3601, allocations: 9.656 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.966e-06/0.3601, allocations: 4.312 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3601, allocations: 0.75 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3601, allocations: 0 / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.3601, allocations: 1.375 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.98e-05/0.3602, allocations: 145.2 kB / 0.5235 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3602, allocations: 0.7031 kB / 0.5235 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3602, allocations: 0 / 0.5235 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.3602, allocations: 5.656 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.3602, allocations: 0.6562 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3602, allocations: 7.938 kB / 0.5235 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3603, allocations: 1.031 kB / 0.5235 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.759e-05/0.3603, allocations: 92.33 kB / 0.5236 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.3604, allocations: 81.8 kB / 0.5237 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.3604, allocations: 2.078 kB / 0.5237 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.072e-05/0.3604, allocations: 5.062 kB / 0.5237 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.3604, allocations: 6.203 kB / 0.5237 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.3604, allocations: 4.031 kB / 0.5237 GB, free: 14.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.828e-05/0.3605, allocations: 79.28 kB / 0.5237 GB, free: 14.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3605, allocations: 1.375 kB / 0.5238 GB, free: 14.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003406/0.3608, allocations: 63.91 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.0006589/0.3615, allocations: 0.7181 MB / 0.5245 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.3616, allocations: 62.62 kB / 0.5246 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3616, allocations: 0 / 0.5246 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.049e-05/0.3617, allocations: 55.14 kB / 0.5246 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.3618, allocations: 3.734 kB / 0.5246 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003185/0.3621, allocations: 133.1 kB / 0.5248 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.3623, allocations: 0.6757 MB / 0.5254 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.062e-06/0.3623, allocations: 0 / 0.5254 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.22e-05/0.3624, allocations: 7.438 kB / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3624, allocations: 0 / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.3821, allocations: 2.466 MB / 0.5278 GB, free: 12.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.517/7.899, allocations: 2.406 kB / 0.5278 GB, free: 12.37 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)