Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001476/0.001476, allocations: 118.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.00143/0.00143, allocations: 198 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.409/1.409, 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 4.1.0-beta.om/package.mo): time 0.2234/0.2234, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002271, allocations: 75.88 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3494, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001493/0.351, allocations: 497.7 kB / 0.5311 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003258/0.3543, allocations: 2.283 MB / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.257e-06/0.3543, allocations: 0 / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.294e-06/0.3543, allocations: 3.938 kB / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.022e-06/0.3543, allocations: 0 / 0.5333 GB, free: 11.22 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-88:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:90:5-160:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto2' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:162:5-239:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:241:5-319:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002029/0.3563, allocations: 0.6416 MB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.531e-05/0.3564, allocations: 9.969 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.639e-05/0.3564, allocations: 0 / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.3566, allocations: 20.91 kB / 0.5339 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.194e-05/0.3566, allocations: 3.875 kB / 0.5339 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.661e-06/0.3566, allocations: 0 / 0.5339 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001015/0.3576, allocations: 0.6647 MB / 0.5346 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.688e-06/0.3577, allocations: 7.984 kB / 0.5346 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.406e-05/0.3577, allocations: 2.75 kB / 0.5346 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006108/0.3583, allocations: 446.6 kB / 0.535 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3583, allocations: 0 / 0.535 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3583, allocations: 0 / 0.535 GB, free: 10.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.3583, allocations: 0 / 0.535 GB, free: 10.22 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000422/0.3587, allocations: 431.5 kB / 0.5354 GB, free: 9.781 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.3588, allocations: 10.12 kB / 0.5355 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.441e-05/0.3589, allocations: 111.1 kB / 0.5356 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.175e-05/0.3589, allocations: 81.44 kB / 0.5356 GB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.3591, allocations: 235.7 kB / 0.5359 GB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.328e-05/0.3591, allocations: 154.9 kB / 0.536 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.175e-05/0.3592, allocations: 155.7 kB / 0.5362 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.519e-05/0.3593, allocations: 101 kB / 0.5363 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.3593, allocations: 76.47 kB / 0.5363 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.992e-05/0.3594, allocations: 159.7 kB / 0.5365 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.989e-05/0.3595, allocations: 150.6 kB / 0.5366 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.6e-05/0.3595, allocations: 151.8 kB / 0.5368 GB, free: 8.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002985/0.3598, allocations: 447.1 kB / 0.5372 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.36, allocations: 178.4 kB / 0.5374 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.929e-05/0.36, allocations: 84.08 kB / 0.5374 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.327e-05/0.36, allocations: 75.28 kB / 0.5375 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.972e-05/0.3601, allocations: 136.5 kB / 0.5376 GB, free: 7.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.01e-07/0.3601, allocations: 1.125 kB / 0.5376 GB, free: 7.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.219e-05/0.3602, allocations: 26.86 kB / 0.5377 GB, free: 7.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.197e-05/0.3603, allocations: 161.6 kB / 0.5378 GB, free: 7.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.176e-05/0.3604, allocations: 89.86 kB / 0.5379 GB, free: 7.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.3604, allocations: 26.64 kB / 0.5379 GB, free: 7.066 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.3604, allocations: 85.3 kB / 0.538 GB, free: 6.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.242e-06/0.3604, allocations: 0 / 0.538 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.831e-05/0.3605, allocations: 17.08 kB / 0.538 GB, free: 6.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3606, allocations: 312.1 kB / 0.5383 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.428e-06/0.3606, allocations: 0 / 0.5383 GB, free: 6.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.224e-05/0.3606, allocations: 10.06 kB / 0.5383 GB, free: 6.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.39e-05/0.3607, allocations: 75.28 kB / 0.5384 GB, free: 6.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-05/0.3607, allocations: 76.41 kB / 0.5385 GB, free: 6.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.704e-05/0.3608, allocations: 35.73 kB / 0.5385 GB, free: 6.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.3608, allocations: 80.91 kB / 0.5386 GB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.334e-05/0.3609, allocations: 76.5 kB / 0.5387 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.959e-05/0.361, allocations: 163.7 kB / 0.5388 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.754e-05/0.361, allocations: 83.31 kB / 0.5389 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.747e-05/0.3611, allocations: 155.7 kB / 0.5391 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.897e-05/0.3612, allocations: 77.56 kB / 0.5391 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.3612, allocations: 75.28 kB / 0.5392 GB, free: 5.762 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001541/0.3614, allocations: 267.6 kB / 0.5395 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.14e-05/0.3614, allocations: 114 kB / 0.5396 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.701e-05/0.3615, allocations: 113 kB / 0.5397 GB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.422e-05/0.3616, allocations: 185.3 kB / 0.5399 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.95e-05/0.3617, allocations: 177.5 kB / 0.54 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.771e-05/0.3617, allocations: 181.2 kB / 0.5402 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.362, allocations: 411.1 kB / 0.5406 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-05/0.3621, allocations: 105 kB / 0.5407 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.032e-05/0.3621, allocations: 106 kB / 0.5408 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.506e-05/0.3622, allocations: 177.4 kB / 0.541 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.279e-05/0.3623, allocations: 181.3 kB / 0.5411 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.309e-05/0.3624, allocations: 181.4 kB / 0.5413 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-05/0.3624, allocations: 181.4 kB / 0.5415 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.3626, allocations: 308.1 kB / 0.5418 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.158e-05/0.3627, allocations: 186 kB / 0.5419 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.925e-05/0.3628, allocations: 178.7 kB / 0.5421 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.3629, allocations: 107.3 kB / 0.5422 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.346e-05/0.363, allocations: 184.2 kB / 0.5424 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-05/0.363, allocations: 102 kB / 0.5425 GB, free: 2.195 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.561e-05/0.3631, allocations: 76.34 kB / 0.5426 GB, free: 2.121 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3631, allocations: 7.875 kB / 0.5426 GB, free: 2.113 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005306/0.3636, allocations: 138.4 kB / 0.5427 GB, free: 2.078 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.00115/0.3648, allocations: 1.05 MB / 0.5437 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 3.971e-05/0.3648, allocations: 1.75 kB / 0.5437 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3649, allocations: 4 kB / 0.5437 GB, free: 1.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.723e-06/0.3649, allocations: 1.438 kB / 0.5437 GB, free: 1.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.3652, allocations: 461 kB / 0.5442 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004099/0.3656, allocations: 241.8 kB / 0.5444 GB, free: 480 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.3659, allocations: 0.6728 MB / 0.5451 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.931e-06/0.3659, allocations: 5.25 kB / 0.5451 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.185e-05/0.3659, allocations: 8.562 kB / 0.5451 GB, free: 15.76 MB / 414.1 MB Notification: Performance of SimCode: time 2.1e-07/0.366, allocations: 0 / 0.5451 GB, free: 15.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02789/0.3938, allocations: 4.164 MB / 0.5491 GB, free: 13.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.235/8.629, allocations: 11.23 kB / 0.5492 GB, free: 13.5 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe 2>&1)