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.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.001482/0.001482, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2188/0.2188, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.358, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001484/0.3596, allocations: 494 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003008/0.3626, allocations: 2.272 MB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.92e-06/0.3626, allocations: 3.938 kB / 0.5332 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.848e-06/0.3626, allocations: 0 / 0.5332 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.223e-06/0.3627, allocations: 5.844 kB / 0.5332 GB, free: 11.27 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-85: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:87:5-157: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:159:5-233: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:235:5-313: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.002126/0.3648, allocations: 0.6172 MB / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.159e-05/0.3648, allocations: 5.5 kB / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.107e-05/0.3649, allocations: 0 / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.365, allocations: 20.16 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.607e-05/0.3651, allocations: 8.125 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.539e-06/0.3651, allocations: 1.375 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.3662, allocations: 0.6641 MB / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.882e-06/0.3662, allocations: 0 / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.142e-05/0.3662, allocations: 2.125 kB / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006328/0.3669, allocations: 432.5 kB / 0.5349 GB, free: 10.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3669, allocations: 1.094 kB / 0.5349 GB, free: 10.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3669, allocations: 0 / 0.5349 GB, free: 10.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.3669, allocations: 0 / 0.5349 GB, free: 10.3 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.0004191/0.3673, allocations: 428 kB / 0.5353 GB, free: 9.867 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3674, allocations: 14.25 kB / 0.5353 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.101e-05/0.3674, allocations: 106 kB / 0.5354 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.847e-05/0.3675, allocations: 77.38 kB / 0.5355 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.3676, allocations: 240.8 kB / 0.5357 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.527e-05/0.3677, allocations: 150.9 kB / 0.5359 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.136e-05/0.3677, allocations: 158.4 kB / 0.536 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.956e-05/0.3678, allocations: 110.2 kB / 0.5361 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.3678, allocations: 75.28 kB / 0.5362 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.963e-05/0.3679, allocations: 151.7 kB / 0.5363 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.154e-05/0.368, allocations: 155.7 kB / 0.5365 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.625e-05/0.368, allocations: 150.6 kB / 0.5366 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002446/0.3683, allocations: 447.1 kB / 0.537 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.455e-05/0.3683, allocations: 174.3 kB / 0.5372 GB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.064e-05/0.3684, allocations: 81.23 kB / 0.5373 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.3684, allocations: 75.28 kB / 0.5374 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.086e-05/0.3685, allocations: 140.6 kB / 0.5375 GB, free: 7.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.22e-07/0.3685, allocations: 0 / 0.5375 GB, free: 7.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.154e-05/0.3686, allocations: 35.94 kB / 0.5375 GB, free: 7.449 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.3686, allocations: 152.4 kB / 0.5377 GB, free: 7.281 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.871e-05/0.3687, allocations: 90.95 kB / 0.5378 GB, free: 7.184 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.3687, allocations: 29.64 kB / 0.5378 GB, free: 7.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.066e-05/0.3687, allocations: 81.39 kB / 0.5379 GB, free: 7.066 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-06/0.3688, allocations: 0 / 0.5379 GB, free: 7.066 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/0.3688, allocations: 14.19 kB / 0.5379 GB, free: 7.051 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3689, allocations: 315.9 kB / 0.5382 GB, free: 6.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-06/0.3689, allocations: 0 / 0.5382 GB, free: 6.734 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.239e-05/0.3689, allocations: 1.125 kB / 0.5382 GB, free: 6.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.88e-05/0.369, allocations: 80.36 kB / 0.5383 GB, free: 6.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.102e-05/0.369, allocations: 79.22 kB / 0.5383 GB, free: 6.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.424e-05/0.3691, allocations: 36.73 kB / 0.5384 GB, free: 6.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.3691, allocations: 80.47 kB / 0.5385 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/0.3691, allocations: 84.44 kB / 0.5385 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.35e-05/0.3692, allocations: 155.3 kB / 0.5387 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.329e-05/0.3692, allocations: 76.12 kB / 0.5388 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.468e-05/0.3693, allocations: 155.6 kB / 0.5389 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.109e-05/0.3694, allocations: 77.31 kB / 0.539 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.3694, allocations: 80.27 kB / 0.5391 GB, free: 5.852 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.0001175/0.3695, allocations: 266.6 kB / 0.5393 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.3696, allocations: 114.1 kB / 0.5394 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.027e-05/0.3697, allocations: 113 kB / 0.5395 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.235e-05/0.3697, allocations: 181.3 kB / 0.5397 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-05/0.3698, allocations: 181.2 kB / 0.5399 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.395e-05/0.3699, allocations: 181.4 kB / 0.54 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.3701, allocations: 411.2 kB / 0.5404 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.152e-05/0.3701, allocations: 102 kB / 0.5405 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-05/0.3702, allocations: 108.9 kB / 0.5406 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.672e-05/0.3702, allocations: 177.3 kB / 0.5408 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-05/0.3703, allocations: 181.5 kB / 0.541 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-05/0.3704, allocations: 185.5 kB / 0.5412 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.412e-05/0.3704, allocations: 181.8 kB / 0.5413 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.3706, allocations: 307.5 kB / 0.5416 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.098e-05/0.3706, allocations: 178.1 kB / 0.5418 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.859e-05/0.3707, allocations: 191 kB / 0.542 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.725e-05/0.3708, allocations: 106.3 kB / 0.5421 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.565e-05/0.3709, allocations: 181.4 kB / 0.5422 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.3709, allocations: 102 kB / 0.5423 GB, free: 2.281 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.663e-05/0.3709, allocations: 79.22 kB / 0.5424 GB, free: 2.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3709, allocations: 0 / 0.5424 GB, free: 2.203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005657/0.3715, allocations: 137.3 kB / 0.5425 GB, free: 2.168 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.001228/0.3728, allocations: 1.057 MB / 0.5436 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.616e-05/0.3728, allocations: 1.781 kB / 0.5436 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3728, allocations: 0 / 0.5436 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.255e-06/0.3728, allocations: 1.312 kB / 0.5436 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.3732, allocations: 462.2 kB / 0.544 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004544/0.3736, allocations: 242.8 kB / 0.5443 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.3739, allocations: 0.6729 MB / 0.5449 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.895e-06/0.3739, allocations: 1.219 kB / 0.5449 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.715e-05/0.3739, allocations: 8.312 kB / 0.5449 GB, free: 15.85 MB / 414.1 MB Notification: Performance of SimCode: time 2e-07/0.3739, allocations: 0 / 0.5449 GB, free: 15.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.3981, allocations: 4.066 MB / 0.5489 GB, free: 13.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.901/8.299, allocations: 13.16 kB / 0.5489 GB, free: 13.64 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