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.001149/0.001149, allocations: 113.7 kB / 18.45 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 202.7 kB / 19.4 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 247.6 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.2251/0.2251, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 83.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3701, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001763/0.3719, allocations: 485.8 kB / 0.5321 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003643/0.3756, allocations: 2.274 MB / 0.5343 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.63e-06/0.3757, allocations: 0 / 0.5343 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.121e-06/0.3757, allocations: 0 / 0.5343 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.623e-06/0.3757, allocations: 3.938 kB / 0.5343 GB, free: 11.46 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.002548/0.3783, allocations: 0.6292 MB / 0.5349 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.918e-05/0.3783, allocations: 8.109 kB / 0.535 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.434e-05/0.3784, allocations: 1.375 kB / 0.535 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.3785, allocations: 20.17 kB / 0.535 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.582e-05/0.3786, allocations: 4.125 kB / 0.535 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.592e-06/0.3786, allocations: 0 / 0.535 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001636/0.3802, allocations: 0.6566 MB / 0.5356 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-06/0.3802, allocations: 0 / 0.5356 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.891e-05/0.3803, allocations: 2.25 kB / 0.5356 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.3814, allocations: 439.8 kB / 0.536 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3814, allocations: 1.25 kB / 0.536 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3814, allocations: 0 / 0.536 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.024e-06/0.3814, allocations: 0 / 0.536 GB, free: 10.48 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.000642/0.382, allocations: 427.5 kB / 0.5365 GB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3821, allocations: 10.47 kB / 0.5365 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.93e-05/0.3822, allocations: 81.59 kB / 0.5365 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3823, allocations: 235.7 kB / 0.5368 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.91e-05/0.3824, allocations: 150.9 kB / 0.5369 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/0.3824, allocations: 156.3 kB / 0.5371 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.119e-05/0.3825, allocations: 104.9 kB / 0.5372 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.3825, allocations: 75.28 kB / 0.5372 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.908e-05/0.3826, allocations: 155.2 kB / 0.5374 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.657e-05/0.3827, allocations: 152.1 kB / 0.5375 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.198e-05/0.3827, allocations: 154.6 kB / 0.5377 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002945/0.383, allocations: 443.3 kB / 0.5381 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.416e-05/0.3831, allocations: 178.4 kB / 0.5383 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.675e-05/0.3832, allocations: 84.08 kB / 0.5383 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.3832, allocations: 79.28 kB / 0.5384 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.685e-05/0.3833, allocations: 132.8 kB / 0.5385 GB, free: 7.789 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 9.71e-07/0.3833, allocations: 1.344 kB / 0.5385 GB, free: 7.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.429e-05/0.3834, allocations: 26.98 kB / 0.5386 GB, free: 7.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.384e-05/0.3835, allocations: 160.3 kB / 0.5387 GB, free: 7.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.434e-05/0.3835, allocations: 91.2 kB / 0.5388 GB, free: 7.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.3835, allocations: 25.7 kB / 0.5388 GB, free: 7.453 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.786e-05/0.3836, allocations: 85.5 kB / 0.5389 GB, free: 7.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.727e-06/0.3836, allocations: 0 / 0.5389 GB, free: 7.367 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.3836, allocations: 17.66 kB / 0.5389 GB, free: 7.348 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.695e-05/0.3837, allocations: 312.3 kB / 0.5392 GB, free: 7.035 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.471e-06/0.3837, allocations: 3.938 kB / 0.5392 GB, free: 7.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.823e-05/0.3838, allocations: 9.219 kB / 0.5392 GB, free: 7.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.893e-05/0.3838, allocations: 76.47 kB / 0.5393 GB, free: 6.949 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.338e-05/0.3838, allocations: 75.28 kB / 0.5394 GB, free: 6.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.152e-05/0.3839, allocations: 36.52 kB / 0.5394 GB, free: 6.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.3839, allocations: 80 kB / 0.5395 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.384, allocations: 84.67 kB / 0.5396 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.038e-05/0.384, allocations: 152.2 kB / 0.5397 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.965e-05/0.3841, allocations: 83.25 kB / 0.5398 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.413e-05/0.3841, allocations: 152 kB / 0.54 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.039e-05/0.3842, allocations: 80.03 kB / 0.54 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.3842, allocations: 84.31 kB / 0.5401 GB, free: 6.141 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.0001088/0.3843, allocations: 263.3 kB / 0.5404 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.845e-05/0.3844, allocations: 114.3 kB / 0.5405 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.463e-05/0.3845, allocations: 113.1 kB / 0.5406 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.363e-05/0.3845, allocations: 177.4 kB / 0.5407 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.843e-05/0.3846, allocations: 177.6 kB / 0.5409 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.153e-05/0.3846, allocations: 184.2 kB / 0.5411 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.3849, allocations: 404.1 kB / 0.5415 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.82e-05/0.385, allocations: 112.9 kB / 0.5416 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.932e-05/0.385, allocations: 102.3 kB / 0.5417 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.335e-05/0.3851, allocations: 177.5 kB / 0.5419 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-05/0.3852, allocations: 188.2 kB / 0.542 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.82e-05/0.3852, allocations: 177.5 kB / 0.5422 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.619e-05/0.3853, allocations: 185.4 kB / 0.5424 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.3855, allocations: 304.1 kB / 0.5427 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.894e-05/0.3856, allocations: 187.2 kB / 0.5428 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.3857, allocations: 177.5 kB / 0.543 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-05/0.3858, allocations: 107.1 kB / 0.5431 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.3859, allocations: 181.6 kB / 0.5433 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.3859, allocations: 108.9 kB / 0.5434 GB, free: 2.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.489e-05/0.386, allocations: 75.28 kB / 0.5435 GB, free: 2.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.386, allocations: 1.531 kB / 0.5435 GB, free: 2.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.3866, allocations: 132.1 kB / 0.5436 GB, free: 2.473 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.001032/0.3877, allocations: 427.7 kB / 0.544 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.399e-05/0.3877, allocations: 2.188 kB / 0.544 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3878, allocations: 0 / 0.544 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.532e-06/0.3878, allocations: 0 / 0.544 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.3881, allocations: 467.7 kB / 0.5445 GB, free: 1.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00018/0.3883, allocations: 170.7 kB / 0.5446 GB, free: 1.555 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.3885, allocations: 0.674 MB / 0.5453 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.658e-05/0.3886, allocations: 8.469 kB / 0.5453 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3886, allocations: 0 / 0.5453 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of Templates: time 0.00672/0.3953, allocations: 2.818 MB / 0.548 GB, free: 15.39 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/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