Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002379/0.002379, allocations: 211.5 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 258.2 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2258/0.2258, allocations: 44.93 MB / 359.6 MB, free: 6.148 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 63.91 kB / 0.4942 GB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3146, allocations: 65.48 MB / 0.5582 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001554/0.3161, allocations: 0.4892 MB / 0.5586 GB, free: 6.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.3196, allocations: 2.163 MB / 0.5608 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.619e-06/0.3196, allocations: 0 / 0.5608 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.948e-06/0.3196, allocations: 0 / 0.5608 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.062e-06/0.3196, allocations: 4 kB / 0.5608 GB, free: 4.801 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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 4.1.0+maint.om/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 4.1.0+maint.om/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 4.1.0+maint.om/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.002242/0.3219, allocations: 0.6307 MB / 0.5614 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.093e-05/0.3219, allocations: 11.98 kB / 0.5614 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.642e-05/0.3219, allocations: 0 / 0.5614 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.3221, allocations: 19.92 kB / 0.5614 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.504e-05/0.3221, allocations: 4 kB / 0.5614 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.67e-06/0.3221, allocations: 4 kB / 0.5614 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001077/0.3232, allocations: 0.6414 MB / 0.562 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-06/0.3232, allocations: 0 / 0.562 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.051e-05/0.3232, allocations: 4 kB / 0.562 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006529/0.3238, allocations: 457.8 kB / 0.5625 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3239, allocations: 0 / 0.5625 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3239, allocations: 0 / 0.5625 GB, free: 3.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.3239, allocations: 0 / 0.5625 GB, free: 3.047 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.0004125/0.3243, allocations: 347.3 kB / 0.5628 GB, free: 2.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.3243, allocations: 12.03 kB / 0.5628 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.628e-05/0.3244, allocations: 84.16 kB / 0.5629 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.3245, allocations: 181.8 kB / 0.5631 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.268e-05/0.3246, allocations: 150.9 kB / 0.5632 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.679e-05/0.3246, allocations: 166.6 kB / 0.5634 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.657e-05/0.3247, allocations: 101 kB / 0.5635 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/0.3247, allocations: 75.28 kB / 0.5636 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.456e-05/0.3248, allocations: 150.6 kB / 0.5637 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-05/0.3249, allocations: 150.6 kB / 0.5638 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.916e-05/0.3249, allocations: 154.6 kB / 0.564 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000281/0.3252, allocations: 397.6 kB / 0.5644 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.3253, allocations: 173.1 kB / 0.5645 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.501e-05/0.3254, allocations: 80.14 kB / 0.5646 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.3254, allocations: 79.22 kB / 0.5647 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.918e-05/0.3255, allocations: 143.5 kB / 0.5648 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.51e-07/0.3255, allocations: 0 / 0.5648 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.269e-05/0.3256, allocations: 29.69 kB / 0.5648 GB, free: 496 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.298e-05/0.3257, allocations: 156.3 kB / 0.565 GB, free: 320 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.679e-05/0.3257, allocations: 89.86 kB / 0.5651 GB, free: 220 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.3257, allocations: 29.7 kB / 0.5651 GB, free: 184 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.055e-05/0.3258, allocations: 80.14 kB / 0.5652 GB, free: 100 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-06/0.3258, allocations: 4 kB / 0.5652 GB, free: 96 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-05/0.3258, allocations: 13.72 kB / 0.5652 GB, free: 76 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3259, allocations: 310.8 kB / 0.5655 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.97e-06/0.3259, allocations: 0 / 0.5655 GB, free: 15.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.765e-05/0.326, allocations: 29.7 kB / 0.5655 GB, free: 15.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.402e-05/0.326, allocations: 75.28 kB / 0.5656 GB, free: 15.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.278e-05/0.326, allocations: 75.28 kB / 0.5657 GB, free: 15.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.703e-05/0.3261, allocations: 41.75 kB / 0.5657 GB, free: 15.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.707e-05/0.3262, allocations: 86.19 kB / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.631e-05/0.3262, allocations: 83.22 kB / 0.5659 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.23e-05/0.3263, allocations: 154.6 kB / 0.566 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.394e-05/0.3263, allocations: 79.22 kB / 0.5661 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-05/0.3264, allocations: 150.6 kB / 0.5662 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.007e-05/0.3265, allocations: 79.28 kB / 0.5663 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.796e-05/0.3265, allocations: 91.25 kB / 0.5664 GB, free: 14.82 MB / 414.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.0001542/0.3267, allocations: 264.4 kB / 0.5667 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.3267, allocations: 104.9 kB / 0.5668 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.131e-05/0.3268, allocations: 115.7 kB / 0.5669 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.331e-05/0.3269, allocations: 176.3 kB / 0.567 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.482e-05/0.327, allocations: 180.2 kB / 0.5672 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.129e-05/0.327, allocations: 188.2 kB / 0.5674 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.3273, allocations: 352.9 kB / 0.5677 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.092e-05/0.3273, allocations: 108.9 kB / 0.5678 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.374e-05/0.3274, allocations: 101 kB / 0.5679 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.251e-05/0.3274, allocations: 180.2 kB / 0.5681 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.763e-05/0.3275, allocations: 188.1 kB / 0.5683 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.946e-05/0.3276, allocations: 176.3 kB / 0.5684 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-05/0.3277, allocations: 184.2 kB / 0.5686 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001654/0.3279, allocations: 311.7 kB / 0.5689 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.146e-05/0.3279, allocations: 109 kB / 0.569 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.653e-05/0.328, allocations: 188.2 kB / 0.5692 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.989e-05/0.3281, allocations: 108.9 kB / 0.5693 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.137e-05/0.3282, allocations: 184.2 kB / 0.5695 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.3282, allocations: 104.9 kB / 0.5696 GB, free: 11.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.623e-05/0.3283, allocations: 75.28 kB / 0.5697 GB, free: 11.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3283, allocations: 0 / 0.5697 GB, free: 11.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006853/0.3289, allocations: 139.6 kB / 0.5698 GB, free: 11.17 MB / 414.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.0008242/0.3298, allocations: 416.5 kB / 0.5702 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.749e-05/0.3298, allocations: 4 kB / 0.5702 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3298, allocations: 0 / 0.5702 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.563e-06/0.3298, allocations: 0 / 0.5702 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.3302, allocations: 459.7 kB / 0.5706 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002082/0.3304, allocations: 177.9 kB / 0.5708 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.419e-05/0.3305, allocations: 59.34 kB / 0.5708 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.528e-05/0.3305, allocations: 7.438 kB / 0.5709 GB, free: 10.01 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3305, allocations: 0 / 0.5709 GB, free: 10.01 MB / 414.1 MB Notification: Performance of Templates: time 0.005443/0.3359, allocations: 2.838 MB / 0.5736 GB, free: 7.168 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.213171190116554]