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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001605/0.001605, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001893/0.001893, allocations: 209.8 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 230.5 MB / 258.1 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2275/0.2275, allocations: 46.94 MB / 361.5 MB, free: 3.918 MB / 286.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002414/0.002414, allocations: 83.86 kB / 0.4974 GB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3634, allocations: 66.09 MB / 0.5619 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001643/0.365, allocations: 493.1 kB / 0.5624 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00344/0.3684, allocations: 2.164 MB / 0.5645 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-06/0.3684, allocations: 0 / 0.5645 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.927e-06/0.3684, allocations: 0 / 0.5645 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.302e-06/0.3685, allocations: 0 / 0.5645 GB, free: 1.293 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.002287/0.3707, allocations: 0.6409 MB / 0.5651 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.521e-05/0.3708, allocations: 4 kB / 0.5651 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.43e-05/0.3708, allocations: 4 kB / 0.5651 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.371, allocations: 15.92 kB / 0.5651 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.106e-05/0.371, allocations: 7.984 kB / 0.5651 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-06/0.371, allocations: 0 / 0.5651 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.3721, allocations: 0.6438 MB / 0.5658 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.3721, allocations: 3.938 kB / 0.5658 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.499e-05/0.3722, allocations: 0 / 0.5658 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006981/0.3729, allocations: 446.8 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3729, allocations: 0 / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3729, allocations: 0 / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.3729, allocations: 0 / 0.5662 GB, free: 15.54 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.0004263/0.3733, allocations: 359.2 kB / 0.5665 GB, free: 15.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3733, allocations: 12.03 kB / 0.5666 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.985e-05/0.3734, allocations: 80.16 kB / 0.5666 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.3735, allocations: 181.8 kB / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.357e-05/0.3736, allocations: 150.9 kB / 0.5669 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.699e-05/0.3737, allocations: 162.6 kB / 0.5671 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.171e-05/0.3738, allocations: 101 kB / 0.5672 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.769e-05/0.3738, allocations: 75.28 kB / 0.5673 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.353e-05/0.3739, allocations: 150.6 kB / 0.5674 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.539e-05/0.3739, allocations: 158.6 kB / 0.5676 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.815e-05/0.374, allocations: 150.6 kB / 0.5677 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002738/0.3743, allocations: 397.6 kB / 0.5681 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.3744, allocations: 173.1 kB / 0.5683 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.951e-05/0.3744, allocations: 88.14 kB / 0.5683 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.3745, allocations: 75.28 kB / 0.5684 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.678e-05/0.3746, allocations: 139.5 kB / 0.5685 GB, free: 13.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.3746, allocations: 0 / 0.5685 GB, free: 13.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.185e-05/0.3746, allocations: 29.64 kB / 0.5686 GB, free: 12.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.3748, allocations: 156.4 kB / 0.5687 GB, free: 12.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.897e-05/0.3748, allocations: 89.86 kB / 0.5688 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.3748, allocations: 25.7 kB / 0.5688 GB, free: 12.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.426e-05/0.3749, allocations: 84.12 kB / 0.5689 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-06/0.3749, allocations: 0 / 0.5689 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.3749, allocations: 21.64 kB / 0.5689 GB, free: 12.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.375, allocations: 318.8 kB / 0.5692 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.32e-06/0.375, allocations: 4 kB / 0.5692 GB, free: 12.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.435e-05/0.3751, allocations: 25.7 kB / 0.5693 GB, free: 12.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.775e-05/0.3751, allocations: 75.28 kB / 0.5693 GB, free: 12.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.339e-05/0.3751, allocations: 75.28 kB / 0.5694 GB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.928e-05/0.3752, allocations: 33.77 kB / 0.5694 GB, free: 12.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.3752, allocations: 83.22 kB / 0.5695 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.999e-05/0.3753, allocations: 83.22 kB / 0.5696 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.67e-05/0.3754, allocations: 154.5 kB / 0.5697 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.831e-05/0.3754, allocations: 83.22 kB / 0.5698 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-05/0.3755, allocations: 158.6 kB / 0.57 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.572e-05/0.3756, allocations: 79.28 kB / 0.57 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.3756, allocations: 83.27 kB / 0.5701 GB, free: 11.3 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.0001431/0.3757, allocations: 260.4 kB / 0.5704 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.3758, allocations: 112.9 kB / 0.5705 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.3759, allocations: 111.7 kB / 0.5706 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-05/0.376, allocations: 176.3 kB / 0.5708 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.022e-05/0.376, allocations: 188.2 kB / 0.5709 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.842e-05/0.3761, allocations: 176.3 kB / 0.5711 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.3764, allocations: 352.9 kB / 0.5714 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.357e-05/0.3764, allocations: 112.9 kB / 0.5716 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.795e-05/0.3764, allocations: 101 kB / 0.5716 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.638e-05/0.3765, allocations: 184.2 kB / 0.5718 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-05/0.3766, allocations: 184.2 kB / 0.572 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-05/0.3767, allocations: 180.2 kB / 0.5722 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.459e-05/0.3768, allocations: 184.2 kB / 0.5723 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.3769, allocations: 303.8 kB / 0.5726 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.722e-05/0.377, allocations: 105 kB / 0.5727 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.435e-05/0.3771, allocations: 188.2 kB / 0.5729 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-05/0.3772, allocations: 104.9 kB / 0.573 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.631e-05/0.3773, allocations: 180.3 kB / 0.5732 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.382e-05/0.3773, allocations: 108.9 kB / 0.5733 GB, free: 7.871 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.651e-05/0.3773, allocations: 79.28 kB / 0.5734 GB, free: 7.793 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3773, allocations: 0 / 0.5734 GB, free: 7.793 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005585/0.3779, allocations: 139.6 kB / 0.5735 GB, free: 7.656 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.0009473/0.3788, allocations: 409.6 kB / 0.5739 GB, free: 7.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.946e-05/0.3789, allocations: 8 kB / 0.5739 GB, free: 7.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3789, allocations: 4 kB / 0.5739 GB, free: 7.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.044e-06/0.3789, allocations: 0 / 0.5739 GB, free: 7.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.3793, allocations: 458.6 kB / 0.5743 GB, free: 6.789 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/0.3795, allocations: 177.9 kB / 0.5745 GB, free: 6.582 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.719e-05/0.3795, allocations: 51.36 kB / 0.5746 GB, free: 6.512 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.515e-05/0.3795, allocations: 11.44 kB / 0.5746 GB, free: 6.5 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3795, allocations: 0 / 0.5746 GB, free: 6.5 MB / 414.1 MB Notification: Performance of Templates: time 0.005835/0.3854, allocations: 2.848 MB / 0.5774 GB, free: 3.652 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.162374305073172]