Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 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.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_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.001328/0.001328, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 202 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.441/1.441, 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 trunk/package.mo): time 0.2275/0.2275, allocations: 46.11 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 79.86 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3625, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00151/0.364, allocations: 493.3 kB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.3674, allocations: 2.279 MB / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-06/0.3675, allocations: 7.938 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.426e-06/0.3675, allocations: 0 / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.142e-06/0.3675, allocations: 0 / 0.5333 GB, free: 11.18 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.002116/0.3696, allocations: 0.6303 MB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.038e-05/0.3697, allocations: 8.125 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.957e-05/0.3697, allocations: 5.359 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.3698, allocations: 12.19 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.649e-05/0.3699, allocations: 12.11 kB / 0.534 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-06/0.3699, allocations: 0 / 0.534 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.371, allocations: 0.6683 MB / 0.5346 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.572e-06/0.371, allocations: 1.062 kB / 0.5346 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.371, allocations: 2.25 kB / 0.5346 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007159/0.3717, allocations: 442.1 kB / 0.535 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3718, allocations: 0 / 0.535 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3718, allocations: 1.062 kB / 0.535 GB, free: 10.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3718, allocations: 4 kB / 0.535 GB, free: 10.2 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.0005031/0.3723, allocations: 431.5 kB / 0.5355 GB, free: 9.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3723, allocations: 9.562 kB / 0.5355 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.256e-05/0.3724, allocations: 107.3 kB / 0.5356 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.732e-05/0.3725, allocations: 81.44 kB / 0.5356 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.3727, allocations: 235.7 kB / 0.5359 GB, free: 9.293 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.949e-05/0.3727, allocations: 154.9 kB / 0.536 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.266e-05/0.3728, allocations: 159.6 kB / 0.5362 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.406e-05/0.3729, allocations: 106.1 kB / 0.5363 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.3729, allocations: 75.28 kB / 0.5363 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.68e-05/0.373, allocations: 151.7 kB / 0.5365 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.169e-05/0.3731, allocations: 150.6 kB / 0.5366 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.888e-05/0.3732, allocations: 159.6 kB / 0.5368 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003516/0.3735, allocations: 447.1 kB / 0.5372 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.3737, allocations: 178.3 kB / 0.5374 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.049e-05/0.3737, allocations: 80.14 kB / 0.5375 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.537e-05/0.3738, allocations: 76.47 kB / 0.5375 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.173e-05/0.3738, allocations: 140.7 kB / 0.5377 GB, free: 7.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 9.21e-07/0.3739, allocations: 0 / 0.5377 GB, free: 7.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.263e-05/0.3739, allocations: 30.89 kB / 0.5377 GB, free: 7.336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.374, allocations: 153.6 kB / 0.5378 GB, free: 7.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.919e-05/0.3741, allocations: 89.86 kB / 0.5379 GB, free: 7.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.3741, allocations: 30.83 kB / 0.538 GB, free: 7.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.623e-05/0.3742, allocations: 89.08 kB / 0.538 GB, free: 6.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-06/0.3742, allocations: 4 kB / 0.538 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.3742, allocations: 14.22 kB / 0.5381 GB, free: 6.926 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3744, allocations: 310.8 kB / 0.5384 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.831e-06/0.3744, allocations: 0 / 0.5384 GB, free: 6.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.852e-05/0.3744, allocations: 6.266 kB / 0.5384 GB, free: 6.609 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.607e-05/0.3745, allocations: 76.44 kB / 0.5384 GB, free: 6.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.047e-05/0.3745, allocations: 75.28 kB / 0.5385 GB, free: 6.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.59e-05/0.3746, allocations: 39.95 kB / 0.5385 GB, free: 6.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/0.3747, allocations: 85.06 kB / 0.5386 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/0.3747, allocations: 76.44 kB / 0.5387 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.763e-05/0.3748, allocations: 154.5 kB / 0.5388 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.794e-05/0.3748, allocations: 76.34 kB / 0.5389 GB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.687e-05/0.3749, allocations: 155.7 kB / 0.5391 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.737e-05/0.375, allocations: 84.48 kB / 0.5391 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.375, allocations: 80.41 kB / 0.5392 GB, free: 5.727 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.0001452/0.3752, allocations: 259.7 kB / 0.5395 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.747e-05/0.3753, allocations: 110 kB / 0.5396 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.676e-05/0.3753, allocations: 113 kB / 0.5397 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.077e-05/0.3754, allocations: 177.4 kB / 0.5399 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.635e-05/0.3755, allocations: 189.2 kB / 0.54 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.235e-05/0.3756, allocations: 177.3 kB / 0.5402 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.3759, allocations: 406.1 kB / 0.5406 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.095e-05/0.3759, allocations: 106.1 kB / 0.5407 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-05/0.376, allocations: 106 kB / 0.5408 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.334e-05/0.3761, allocations: 181.2 kB / 0.541 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-05/0.3762, allocations: 181.2 kB / 0.5411 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.75e-05/0.3762, allocations: 181.3 kB / 0.5413 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.848e-05/0.3763, allocations: 177.4 kB / 0.5415 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001696/0.3765, allocations: 311.5 kB / 0.5418 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.235e-05/0.3766, allocations: 183 kB / 0.542 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.268e-05/0.3767, allocations: 182.3 kB / 0.5421 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.276e-05/0.3768, allocations: 107.2 kB / 0.5422 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.437e-05/0.3769, allocations: 188.2 kB / 0.5424 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.632e-05/0.3769, allocations: 102.2 kB / 0.5425 GB, free: 2.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.483e-05/0.377, allocations: 80.34 kB / 0.5426 GB, free: 2.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.377, allocations: 4 kB / 0.5426 GB, free: 2.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006395/0.3776, allocations: 138 kB / 0.5427 GB, free: 2.051 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.001493/0.3791, allocations: 1.065 MB / 0.5438 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.224e-05/0.3792, allocations: 5.594 kB / 0.5438 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3792, allocations: 1.344 kB / 0.5438 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.483e-06/0.3792, allocations: 0 / 0.5438 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.3797, allocations: 462.4 kB / 0.5442 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.3801, allocations: 238.7 kB / 0.5444 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.3805, allocations: 0.669 MB / 0.5451 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.867e-06/0.3806, allocations: 0 / 0.5451 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.19e-05/0.3806, allocations: 9.219 kB / 0.5451 GB, free: 15.73 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3806, allocations: 1.562 kB / 0.5451 GB, free: 15.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.4098, allocations: 4.164 MB / 0.5492 GB, free: 13.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.197/8.607, allocations: 20.53 kB / 0.5492 GB, free: 13.46 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches