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.001224/0.001224, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 201.2 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.425/1.425, allocations: 227.4 MB / 247 MB, free: 10.45 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.2598/0.2598, allocations: 46.11 MB / 344.3 MB, free: 11.46 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.002302/0.002302, allocations: 80.16 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3446, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001685/0.3463, allocations: 494.6 kB / 0.5311 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00372/0.3501, allocations: 2.287 MB / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.09e-06/0.3501, allocations: 4.938 kB / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.977e-06/0.3501, allocations: 0 / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.423e-06/0.3501, allocations: 0 / 0.5333 GB, free: 11.23 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.002255/0.3524, allocations: 0.6223 MB / 0.5339 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.841e-05/0.3524, allocations: 9.953 kB / 0.5339 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.728e-05/0.3525, allocations: 4 kB / 0.5339 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.3526, allocations: 20.48 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.93e-05/0.3526, allocations: 4.125 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.829e-06/0.3527, allocations: 0 / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001058/0.3537, allocations: 0.6669 MB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.252e-06/0.3537, allocations: 1.375 kB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.841e-05/0.3538, allocations: 1.375 kB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006665/0.3544, allocations: 450.5 kB / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3544, allocations: 0 / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3544, allocations: 1.094 kB / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.3545, allocations: 0 / 0.535 GB, free: 10.25 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.0005348/0.355, allocations: 435.6 kB / 0.5354 GB, free: 9.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.355, allocations: 9.812 kB / 0.5354 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.327e-05/0.3551, allocations: 107 kB / 0.5355 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.541e-05/0.3552, allocations: 81.34 kB / 0.5356 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.3554, allocations: 247.6 kB / 0.5359 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.613e-05/0.3555, allocations: 152 kB / 0.536 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/0.3555, allocations: 154.5 kB / 0.5362 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.943e-05/0.3556, allocations: 102.1 kB / 0.5363 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/0.3557, allocations: 75.28 kB / 0.5363 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-05/0.3558, allocations: 151.7 kB / 0.5365 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.589e-05/0.3558, allocations: 154.6 kB / 0.5366 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.771e-05/0.3559, allocations: 155.6 kB / 0.5368 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003276/0.3563, allocations: 443.1 kB / 0.5372 GB, free: 7.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.3564, allocations: 174.2 kB / 0.5374 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.232e-05/0.3564, allocations: 85.2 kB / 0.5374 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.3565, allocations: 79.27 kB / 0.5375 GB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.545e-05/0.3566, allocations: 140.6 kB / 0.5376 GB, free: 7.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.3566, allocations: 0 / 0.5376 GB, free: 7.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.403e-05/0.3566, allocations: 26.89 kB / 0.5377 GB, free: 7.395 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.3568, allocations: 153.5 kB / 0.5378 GB, free: 7.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.754e-05/0.3568, allocations: 93.86 kB / 0.5379 GB, free: 7.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.3569, allocations: 30.77 kB / 0.5379 GB, free: 7.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.835e-05/0.3569, allocations: 81.27 kB / 0.538 GB, free: 7.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-06/0.3569, allocations: 0 / 0.538 GB, free: 7.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.357, allocations: 14.22 kB / 0.538 GB, free: 6.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3571, allocations: 314.8 kB / 0.5383 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.752e-06/0.3571, allocations: 5.188 kB / 0.5383 GB, free: 6.672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.189e-05/0.3572, allocations: 1.125 kB / 0.5383 GB, free: 6.672 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.635e-05/0.3572, allocations: 76.47 kB / 0.5384 GB, free: 6.598 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-05/0.3573, allocations: 83.25 kB / 0.5385 GB, free: 6.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.769e-05/0.3573, allocations: 36.95 kB / 0.5385 GB, free: 6.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.451e-05/0.3574, allocations: 83.91 kB / 0.5386 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.256e-05/0.3574, allocations: 76.38 kB / 0.5387 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.998e-05/0.3575, allocations: 155.7 kB / 0.5388 GB, free: 6.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.241e-05/0.3575, allocations: 76.44 kB / 0.5389 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.278e-05/0.3576, allocations: 163.6 kB / 0.5391 GB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.369e-05/0.3577, allocations: 76.44 kB / 0.5391 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.3578, allocations: 76.34 kB / 0.5392 GB, free: 5.789 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.0001478/0.3579, allocations: 266.6 kB / 0.5395 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-05/0.358, allocations: 114 kB / 0.5396 GB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.987e-05/0.3581, allocations: 109.1 kB / 0.5397 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.593e-05/0.3582, allocations: 189.4 kB / 0.5398 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-05/0.3582, allocations: 177.4 kB / 0.54 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.19e-05/0.3583, allocations: 177.5 kB / 0.5402 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.3586, allocations: 414.3 kB / 0.5406 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.531e-05/0.3587, allocations: 102.2 kB / 0.5407 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.937e-05/0.3587, allocations: 114.3 kB / 0.5408 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.22e-05/0.3588, allocations: 177.5 kB / 0.541 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.3589, allocations: 176.3 kB / 0.5411 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.45e-05/0.359, allocations: 181.4 kB / 0.5413 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.361e-05/0.3591, allocations: 185.3 kB / 0.5415 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/0.3592, allocations: 308.2 kB / 0.5418 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.002e-05/0.3593, allocations: 178.1 kB / 0.5419 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.98e-05/0.3594, allocations: 190.6 kB / 0.5421 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.488e-05/0.3595, allocations: 102.1 kB / 0.5422 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.081e-05/0.3596, allocations: 181.4 kB / 0.5424 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.415e-05/0.3597, allocations: 106.3 kB / 0.5425 GB, free: 2.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.315e-05/0.3597, allocations: 79.22 kB / 0.5426 GB, free: 2.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3597, allocations: 1.125 kB / 0.5426 GB, free: 2.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000586/0.3603, allocations: 142 kB / 0.5427 GB, free: 2.102 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.001214/0.3615, allocations: 1.061 MB / 0.5437 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.127e-05/0.3616, allocations: 1.594 kB / 0.5437 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3616, allocations: 0 / 0.5437 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.3616, allocations: 0 / 0.5437 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.362, allocations: 463 kB / 0.5442 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000445/0.3625, allocations: 238.2 kB / 0.5444 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.3628, allocations: 0.674 MB / 0.5451 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.3628, allocations: 0 / 0.5451 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.587e-05/0.3628, allocations: 8.719 kB / 0.5451 GB, free: 15.78 MB / 414.1 MB Notification: Performance of SimCode: time 2e-07/0.3628, allocations: 0 / 0.5451 GB, free: 15.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.3925, allocations: 4.165 MB / 0.5491 GB, free: 13.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/8.67, allocations: 6.047 kB / 0.5491 GB, free: 13.53 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe 2>&1)