Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001778/0.001778, allocations: 107.6 kB / 21.18 MB, free: 0.6758 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.002262/0.002262, allocations: 206.1 kB / 24.48 MB, free: 3.973 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.443/1.443, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2451/0.2451, allocations: 46.97 MB / 361.6 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 71.89 kB / 0.4973 GB, free: 7.246 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3361, allocations: 66.03 MB / 0.5618 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001512/0.3376, allocations: 499.9 kB / 0.5623 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003246/0.3409, allocations: 2.171 MB / 0.5644 GB, free: 1.523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.168e-06/0.3409, allocations: 0 / 0.5644 GB, free: 1.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.536e-06/0.3409, allocations: 0 / 0.5644 GB, free: 1.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.112e-06/0.3409, allocations: 0 / 0.5644 GB, free: 1.523 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.002173/0.3431, allocations: 0.6374 MB / 0.565 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.617e-05/0.3431, allocations: 4 kB / 0.565 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.867e-05/0.3431, allocations: 0 / 0.565 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.3433, allocations: 27.91 kB / 0.565 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.038e-05/0.3433, allocations: 4 kB / 0.565 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-06/0.3433, allocations: 0 / 0.565 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001098/0.3444, allocations: 0.6682 MB / 0.5657 GB, free: 196 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-06/0.3444, allocations: 0 / 0.5657 GB, free: 196 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.375e-05/0.3444, allocations: 4 kB / 0.5657 GB, free: 192 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006346/0.3451, allocations: 454.7 kB / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3451, allocations: 0 / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3451, allocations: 0 / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.3451, allocations: 4 kB / 0.5661 GB, free: 15.74 MB / 414.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.0004176/0.3455, allocations: 351.3 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.3455, allocations: 8.031 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.548e-05/0.3456, allocations: 80.2 kB / 0.5666 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.3457, allocations: 185.8 kB / 0.5667 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.365e-05/0.3458, allocations: 150.9 kB / 0.5669 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.207e-05/0.3458, allocations: 154.7 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.057e-05/0.3459, allocations: 104.9 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.677e-05/0.346, allocations: 79.28 kB / 0.5672 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.048e-05/0.346, allocations: 154.6 kB / 0.5674 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.243e-05/0.3461, allocations: 150.6 kB / 0.5675 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.604e-05/0.3462, allocations: 150.6 kB / 0.5676 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002592/0.3464, allocations: 393.6 kB / 0.568 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.3465, allocations: 173.1 kB / 0.5682 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.623e-05/0.3466, allocations: 88.14 kB / 0.5683 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.602e-05/0.3466, allocations: 79.27 kB / 0.5683 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.914e-05/0.3467, allocations: 139.4 kB / 0.5685 GB, free: 13.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.3467, allocations: 0 / 0.5685 GB, free: 13.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.16e-05/0.3468, allocations: 33.64 kB / 0.5685 GB, free: 13.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.011e-05/0.3469, allocations: 152.4 kB / 0.5687 GB, free: 13.01 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.763e-05/0.3469, allocations: 89.86 kB / 0.5687 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.3469, allocations: 25.7 kB / 0.5688 GB, free: 12.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.114e-05/0.347, allocations: 84.14 kB / 0.5688 GB, free: 12.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.334e-06/0.347, allocations: 0 / 0.5688 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.347, allocations: 17.66 kB / 0.5689 GB, free: 12.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3471, allocations: 322.8 kB / 0.5692 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-06/0.3471, allocations: 0 / 0.5692 GB, free: 12.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.837e-05/0.3472, allocations: 29.7 kB / 0.5692 GB, free: 12.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.373e-05/0.3472, allocations: 75.28 kB / 0.5693 GB, free: 12.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.881e-05/0.3472, allocations: 75.28 kB / 0.5693 GB, free: 12.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.302e-05/0.3473, allocations: 33.77 kB / 0.5694 GB, free: 12.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.3473, allocations: 83.22 kB / 0.5695 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/0.3474, allocations: 79.22 kB / 0.5695 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.433e-05/0.3474, allocations: 154.6 kB / 0.5697 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.077e-05/0.3475, allocations: 75.28 kB / 0.5697 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.54e-05/0.3475, allocations: 158.5 kB / 0.5699 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.288e-05/0.3476, allocations: 87.31 kB / 0.57 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/0.3477, allocations: 83.27 kB / 0.5701 GB, free: 11.52 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.0001405/0.3478, allocations: 260.4 kB / 0.5703 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.761e-05/0.3479, allocations: 104.9 kB / 0.5704 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.831e-05/0.3479, allocations: 107.8 kB / 0.5705 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.576e-05/0.348, allocations: 192.2 kB / 0.5707 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.782e-05/0.3481, allocations: 176.3 kB / 0.5709 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.696e-05/0.3482, allocations: 180.2 kB / 0.571 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.3484, allocations: 348.9 kB / 0.5714 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.126e-05/0.3484, allocations: 109 kB / 0.5715 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.3485, allocations: 112.9 kB / 0.5716 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.515e-05/0.3485, allocations: 180.3 kB / 0.5718 GB, free: 9.676 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.082e-05/0.3486, allocations: 184.1 kB / 0.5719 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.755e-05/0.3487, allocations: 180.3 kB / 0.5721 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-05/0.3488, allocations: 180.2 kB / 0.5723 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.3489, allocations: 307.8 kB / 0.5726 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.714e-05/0.349, allocations: 112.9 kB / 0.5727 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.477e-05/0.3491, allocations: 184.2 kB / 0.5728 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.665e-05/0.3492, allocations: 112.9 kB / 0.573 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.099e-05/0.3493, allocations: 176.3 kB / 0.5731 GB, free: 8.195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.828e-05/0.3493, allocations: 113 kB / 0.5732 GB, free: 8.078 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.3493, allocations: 75.28 kB / 0.5733 GB, free: 8.004 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3493, allocations: 0 / 0.5733 GB, free: 8.004 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005455/0.3499, allocations: 139.6 kB / 0.5734 GB, free: 7.867 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.0008473/0.3507, allocations: 408.8 kB / 0.5738 GB, free: 7.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.298e-05/0.3508, allocations: 4 kB / 0.5738 GB, free: 7.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3508, allocations: 4 kB / 0.5738 GB, free: 7.453 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.262e-06/0.3508, allocations: 0 / 0.5738 GB, free: 7.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.3512, allocations: 459.7 kB / 0.5743 GB, free: 7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000184/0.3513, allocations: 178 kB / 0.5744 GB, free: 6.793 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.469e-05/0.3514, allocations: 51.36 kB / 0.5745 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.219e-05/0.3514, allocations: 11.44 kB / 0.5745 GB, free: 6.711 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3514, allocations: 0 / 0.5745 GB, free: 6.711 MB / 414.1 MB Notification: Performance of Templates: time 0.005544/0.357, allocations: 2.844 MB / 0.5773 GB, free: 3.867 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 8.955907947005471]