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: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00145/0.00145, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00181/0.001811, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2149/0.2149, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002482/0.002482, allocations: 75.88 kB / 481.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3816, allocations: 62.44 MB / 0.531 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001553/0.3832, allocations: 0.4907 MB / 0.5315 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00333/0.3865, allocations: 2.262 MB / 0.5337 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.278e-06/0.3866, allocations: 4.938 kB / 0.5337 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.923e-06/0.3866, allocations: 0 / 0.5337 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.533e-06/0.3866, allocations: 3.938 kB / 0.5337 GB, free: 11.5 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.002151/0.3888, allocations: 0.6255 MB / 0.5343 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.303e-05/0.3888, allocations: 9.672 kB / 0.5343 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.069e-05/0.3889, allocations: 1.125 kB / 0.5343 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.389, allocations: 15.94 kB / 0.5343 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.731e-05/0.3891, allocations: 7.422 kB / 0.5343 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.37e-06/0.3891, allocations: 5.094 kB / 0.5343 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/0.3902, allocations: 0.6559 MB / 0.535 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.615e-06/0.3902, allocations: 0 / 0.535 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.184e-05/0.3902, allocations: 6.234 kB / 0.535 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007381/0.391, allocations: 430 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.391, allocations: 4 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.391, allocations: 0 / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.391, allocations: 0 / 0.5354 GB, free: 10.53 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.0004196/0.3914, allocations: 439.9 kB / 0.5358 GB, free: 10.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3915, allocations: 8.969 kB / 0.5358 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.661e-05/0.3916, allocations: 77.31 kB / 0.5359 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.3917, allocations: 239.7 kB / 0.5361 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.076e-05/0.3917, allocations: 150.9 kB / 0.5363 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.3918, allocations: 156.2 kB / 0.5364 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.152e-05/0.3919, allocations: 105 kB / 0.5365 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-05/0.392, allocations: 76.5 kB / 0.5366 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.09e-05/0.3921, allocations: 150.6 kB / 0.5367 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.878e-05/0.3921, allocations: 151.8 kB / 0.5369 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.611e-05/0.3922, allocations: 154.5 kB / 0.537 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003245/0.3925, allocations: 447.2 kB / 0.5374 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.3926, allocations: 174.5 kB / 0.5376 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.074e-05/0.3927, allocations: 85.02 kB / 0.5377 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.3927, allocations: 75.28 kB / 0.5378 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.057e-05/0.3928, allocations: 144.6 kB / 0.5379 GB, free: 7.816 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 9.61e-07/0.3928, allocations: 0 / 0.5379 GB, free: 7.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.374e-05/0.3929, allocations: 27.89 kB / 0.5379 GB, free: 7.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/0.393, allocations: 152.4 kB / 0.5381 GB, free: 7.617 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.972e-05/0.393, allocations: 90.95 kB / 0.5382 GB, free: 7.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.393, allocations: 25.7 kB / 0.5382 GB, free: 7.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.66e-05/0.3931, allocations: 81.23 kB / 0.5383 GB, free: 7.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.007e-06/0.3931, allocations: 1.531 kB / 0.5383 GB, free: 7.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/0.3931, allocations: 20.23 kB / 0.5383 GB, free: 7.383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3933, allocations: 316.1 kB / 0.5386 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.212e-06/0.3933, allocations: 0 / 0.5386 GB, free: 7.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.633e-05/0.3933, allocations: 2.312 kB / 0.5386 GB, free: 7.066 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.169e-05/0.3933, allocations: 75.28 kB / 0.5386 GB, free: 6.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-05/0.3934, allocations: 80.19 kB / 0.5387 GB, free: 6.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.245e-05/0.3934, allocations: 43.8 kB / 0.5388 GB, free: 6.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.3935, allocations: 80.88 kB / 0.5388 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.531e-05/0.3935, allocations: 80.53 kB / 0.5389 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.688e-05/0.3936, allocations: 159.5 kB / 0.5391 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.655e-05/0.3937, allocations: 80.39 kB / 0.5392 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.197e-05/0.3937, allocations: 150.6 kB / 0.5393 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.34e-05/0.3938, allocations: 81.53 kB / 0.5394 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.3939, allocations: 76.5 kB / 0.5394 GB, free: 6.18 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.00013/0.394, allocations: 270.7 kB / 0.5397 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.47e-05/0.3941, allocations: 109.8 kB / 0.5398 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.911e-05/0.3941, allocations: 112.9 kB / 0.5399 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-05/0.3942, allocations: 177.5 kB / 0.5401 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.603e-05/0.3943, allocations: 181.3 kB / 0.5403 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-05/0.3944, allocations: 181.3 kB / 0.5404 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.3946, allocations: 410.2 kB / 0.5408 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-05/0.3947, allocations: 106.2 kB / 0.5409 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.328e-05/0.3947, allocations: 101.9 kB / 0.541 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-05/0.3948, allocations: 181.5 kB / 0.5412 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.486e-05/0.3949, allocations: 177.4 kB / 0.5414 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.711e-05/0.395, allocations: 189.3 kB / 0.5415 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-05/0.395, allocations: 181.4 kB / 0.5417 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001655/0.3952, allocations: 303.2 kB / 0.542 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.061e-05/0.3953, allocations: 187.2 kB / 0.5422 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3954, allocations: 190.4 kB / 0.5424 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3955, allocations: 102.1 kB / 0.5425 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.3956, allocations: 181.3 kB / 0.5426 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.3957, allocations: 102.2 kB / 0.5427 GB, free: 2.613 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.673e-05/0.3957, allocations: 75.28 kB / 0.5428 GB, free: 2.539 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3957, allocations: 0 / 0.5428 GB, free: 2.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006705/0.3964, allocations: 140.8 kB / 0.5429 GB, free: 2.5 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.0008577/0.3973, allocations: 415.9 kB / 0.5433 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.283e-05/0.3973, allocations: 1.062 kB / 0.5433 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3974, allocations: 0 / 0.5433 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.909e-06/0.3974, allocations: 9 kB / 0.5433 GB, free: 2.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.3978, allocations: 466.6 kB / 0.5438 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001679/0.398, allocations: 147.3 kB / 0.5439 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3983, allocations: 0.6703 MB / 0.5446 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.484e-06/0.3983, allocations: 0 / 0.5446 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.598e-05/0.3983, allocations: 9.906 kB / 0.5446 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3983, allocations: 4 kB / 0.5446 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of Templates: time 0.00747/0.4058, allocations: 3.169 MB / 0.5477 GB, free: 15.26 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches