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.001497/0.001497, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001536/0.001536, allocations: 201.9 kB / 23.73 MB, free: 4.379 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.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2769/0.2769, allocations: 46.96 MB / 360.9 MB, free: 4.129 MB / 286.1 MB " [Timeout remaining time 179] 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.002192/0.002192, allocations: 71.83 kB / 0.4966 GB, free: 7.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3804/0.3826, allocations: 66.04 MB / 0.5611 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001632/0.3842, allocations: 493 kB / 0.5615 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004229/0.3885, allocations: 2.171 MB / 0.5636 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.077e-06/0.3885, allocations: 0 / 0.5636 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.416e-06/0.3885, allocations: 0 / 0.5636 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.154e-06/0.3885, allocations: 0 / 0.5636 GB, free: 1.492 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.002689/0.3912, allocations: 0.6268 MB / 0.5643 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.99e-05/0.3912, allocations: 16 kB / 0.5643 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.868e-05/0.3913, allocations: 0 / 0.5643 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.3914, allocations: 19.91 kB / 0.5643 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.5e-05/0.3915, allocations: 4 kB / 0.5643 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.749e-06/0.3915, allocations: 3.938 kB / 0.5643 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.3926, allocations: 0.6649 MB / 0.565 GB, free: 168 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.852e-06/0.3926, allocations: 4 kB / 0.565 GB, free: 164 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.387e-05/0.3926, allocations: 4 kB / 0.565 GB, free: 160 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006553/0.3933, allocations: 449.8 kB / 0.5654 GB, free: 15.72 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3933, allocations: 0 / 0.5654 GB, free: 15.72 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3933, allocations: 0 / 0.5654 GB, free: 15.72 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.3933, allocations: 0 / 0.5654 GB, free: 15.72 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.0004549/0.3937, allocations: 355.3 kB / 0.5657 GB, free: 15.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3938, allocations: 11.97 kB / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.106e-05/0.3939, allocations: 88.2 kB / 0.5658 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.394, allocations: 181.8 kB / 0.566 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.285e-05/0.3941, allocations: 150.9 kB / 0.5661 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-05/0.3941, allocations: 158.7 kB / 0.5663 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.911e-05/0.3942, allocations: 108.9 kB / 0.5664 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.614e-05/0.3943, allocations: 75.28 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-05/0.3944, allocations: 150.6 kB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.369e-05/0.3944, allocations: 154.6 kB / 0.5668 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.642e-05/0.3945, allocations: 150.6 kB / 0.5669 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003018/0.3948, allocations: 397.6 kB / 0.5673 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.3949, allocations: 169.1 kB / 0.5674 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.911e-05/0.395, allocations: 80.14 kB / 0.5675 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.395, allocations: 79.27 kB / 0.5676 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.383e-05/0.3951, allocations: 139.5 kB / 0.5677 GB, free: 13.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.3951, allocations: 4 kB / 0.5677 GB, free: 13.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.768e-05/0.3952, allocations: 25.7 kB / 0.5678 GB, free: 13.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.3953, allocations: 156.4 kB / 0.5679 GB, free: 12.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.136e-05/0.3953, allocations: 93.86 kB / 0.568 GB, free: 12.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.3954, allocations: 25.7 kB / 0.568 GB, free: 12.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.3954, allocations: 80.14 kB / 0.5681 GB, free: 12.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.364e-06/0.3954, allocations: 0 / 0.5681 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.747e-05/0.3954, allocations: 17.66 kB / 0.5681 GB, free: 12.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3956, allocations: 314.8 kB / 0.5684 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-06/0.3956, allocations: 4 kB / 0.5684 GB, free: 12.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.753e-05/0.3956, allocations: 25.7 kB / 0.5684 GB, free: 12.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.818e-05/0.3957, allocations: 79.31 kB / 0.5685 GB, free: 12.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.79e-05/0.3957, allocations: 75.28 kB / 0.5686 GB, free: 12.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.04e-05/0.3958, allocations: 33.77 kB / 0.5686 GB, free: 12.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-05/0.3959, allocations: 87.16 kB / 0.5687 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-05/0.3959, allocations: 87.22 kB / 0.5688 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001105/0.396, allocations: 150.6 kB / 0.5689 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.535e-05/0.3961, allocations: 75.28 kB / 0.569 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001178/0.3962, allocations: 162.5 kB / 0.5692 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.3963, allocations: 75.28 kB / 0.5692 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.3964, allocations: 83.27 kB / 0.5693 GB, free: 11.49 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.0002175/0.3966, allocations: 264.4 kB / 0.5696 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.581e-05/0.3967, allocations: 112.9 kB / 0.5697 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.492e-05/0.3968, allocations: 107.8 kB / 0.5698 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001227/0.3969, allocations: 188.2 kB / 0.57 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001184/0.397, allocations: 180.3 kB / 0.5701 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001157/0.3971, allocations: 180.2 kB / 0.5703 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.3974, allocations: 356.8 kB / 0.5706 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.749e-05/0.3974, allocations: 105 kB / 0.5707 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.194e-05/0.3975, allocations: 104.9 kB / 0.5708 GB, free: 9.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.039e-05/0.3976, allocations: 180.3 kB / 0.571 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-05/0.3977, allocations: 188.1 kB / 0.5712 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.115e-05/0.3978, allocations: 176.3 kB / 0.5714 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001068/0.3979, allocations: 184.2 kB / 0.5715 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.3981, allocations: 307.8 kB / 0.5718 GB, free: 8.758 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.3981, allocations: 104.9 kB / 0.5719 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3982, allocations: 192.2 kB / 0.5721 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.996e-05/0.3983, allocations: 108.9 kB / 0.5722 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3984, allocations: 180.3 kB / 0.5724 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.3985, allocations: 101 kB / 0.5725 GB, free: 8.051 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.107e-05/0.3985, allocations: 75.28 kB / 0.5726 GB, free: 7.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3985, allocations: 0 / 0.5726 GB, free: 7.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006524/0.3992, allocations: 143.6 kB / 0.5727 GB, free: 7.836 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.001167/0.4003, allocations: 422.2 kB / 0.5731 GB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.406e-05/0.4004, allocations: 4 kB / 0.5731 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4004, allocations: 0 / 0.5731 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.523e-06/0.4004, allocations: 0 / 0.5731 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.4008, allocations: 459.7 kB / 0.5735 GB, free: 6.969 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002466/0.4011, allocations: 156.3 kB / 0.5737 GB, free: 6.789 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.276e-05/0.4012, allocations: 55.36 kB / 0.5737 GB, free: 6.715 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.814e-06/0.4012, allocations: 0 / 0.5737 GB, free: 6.715 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.134e-05/0.4012, allocations: 7.438 kB / 0.5737 GB, free: 6.707 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4012, allocations: 0 / 0.5737 GB, free: 6.707 MB / 414.1 MB Notification: Performance of Templates: time 0.009153/0.4103, allocations: 3.27 MB / 0.5769 GB, free: 3.441 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/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: 5.540999912191182]