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.001453/0.001453, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001597/0.001597, allocations: 213.5 kB / 24.5 MB, free: 4.148 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.335/1.335, allocations: 230.5 MB / 258.1 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 179] 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.2064/0.2064, allocations: 46.92 MB / 361.5 MB, free: 4.184 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.002255/0.002255, allocations: 83.86 kB / 0.4974 GB, free: 7.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2711, allocations: 66.07 MB / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001623/0.2728, allocations: 0.504 MB / 0.5624 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003355/0.2761, allocations: 2.319 MB / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.339e-06/0.2761, allocations: 0 / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.457e-06/0.2761, allocations: 0 / 0.5647 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.52e-07/0.2761, allocations: 0 / 0.5647 GB, free: 1.414 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.002189/0.2783, allocations: 0.6372 MB / 0.5653 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.783e-05/0.2783, allocations: 12 kB / 0.5653 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.19e-05/0.2784, allocations: 0 / 0.5653 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2785, allocations: 19.97 kB / 0.5653 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.229e-05/0.2785, allocations: 7.938 kB / 0.5653 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-06/0.2785, allocations: 0 / 0.5653 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.2796, allocations: 0.6711 MB / 0.566 GB, free: 76 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-06/0.2796, allocations: 0 / 0.566 GB, free: 76 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.703e-05/0.2797, allocations: 0 / 0.566 GB, free: 76 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007062/0.2804, allocations: 453.8 kB / 0.5664 GB, free: 15.63 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2804, allocations: 4 kB / 0.5664 GB, free: 15.63 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2804, allocations: 0 / 0.5664 GB, free: 15.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.2804, allocations: 0 / 0.5664 GB, free: 15.63 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.0004262/0.2808, allocations: 359.3 kB / 0.5668 GB, free: 15.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.2808, allocations: 8.031 kB / 0.5668 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.592e-05/0.2809, allocations: 80.22 kB / 0.5669 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.281, allocations: 177.8 kB / 0.567 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.142e-05/0.2811, allocations: 154.9 kB / 0.5672 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.687e-05/0.2811, allocations: 158.7 kB / 0.5673 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.608e-05/0.2812, allocations: 104.9 kB / 0.5674 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.2813, allocations: 75.28 kB / 0.5675 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.141e-05/0.2813, allocations: 158.5 kB / 0.5677 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.766e-05/0.2814, allocations: 150.6 kB / 0.5678 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.685e-05/0.2815, allocations: 154.6 kB / 0.5679 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000296/0.2817, allocations: 417 kB / 0.5683 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.37e-05/0.2818, allocations: 173.1 kB / 0.5685 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.878e-05/0.2819, allocations: 84.08 kB / 0.5686 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.2819, allocations: 79.28 kB / 0.5687 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.872e-05/0.282, allocations: 131.5 kB / 0.5688 GB, free: 13.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.51e-07/0.282, allocations: 0 / 0.5688 GB, free: 13.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.204e-05/0.2821, allocations: 29.7 kB / 0.5688 GB, free: 13.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/0.2822, allocations: 160.3 kB / 0.569 GB, free: 12.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.224e-05/0.2822, allocations: 89.86 kB / 0.5691 GB, free: 12.76 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.2822, allocations: 29.64 kB / 0.5691 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.967e-05/0.2823, allocations: 88.12 kB / 0.5692 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.684e-06/0.2823, allocations: 0 / 0.5692 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.2823, allocations: 13.72 kB / 0.5692 GB, free: 12.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2824, allocations: 310.8 kB / 0.5695 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.117e-06/0.2824, allocations: 4 kB / 0.5695 GB, free: 12.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.965e-05/0.2825, allocations: 0 / 0.5695 GB, free: 12.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.004e-05/0.2825, allocations: 75.28 kB / 0.5696 GB, free: 12.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.771e-05/0.2825, allocations: 75.28 kB / 0.5696 GB, free: 12.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.082e-05/0.2826, allocations: 33.7 kB / 0.5697 GB, free: 12.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/0.2826, allocations: 83.31 kB / 0.5697 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.279e-05/0.2827, allocations: 87.22 kB / 0.5698 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.885e-05/0.2827, allocations: 158.6 kB / 0.57 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.784e-05/0.2828, allocations: 79.22 kB / 0.57 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.609e-05/0.2828, allocations: 150.6 kB / 0.5702 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.953e-05/0.2829, allocations: 79.28 kB / 0.5703 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.283, allocations: 87.27 kB / 0.5703 GB, free: 11.4 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.0001291/0.2831, allocations: 256.4 kB / 0.5706 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.283e-05/0.2832, allocations: 116.9 kB / 0.5707 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.095e-05/0.2832, allocations: 111.7 kB / 0.5708 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.492e-05/0.2833, allocations: 180.3 kB / 0.571 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-05/0.2834, allocations: 184.3 kB / 0.5712 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.077e-05/0.2834, allocations: 180.2 kB / 0.5713 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002373/0.2837, allocations: 372.3 kB / 0.5717 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.552e-05/0.2837, allocations: 112.9 kB / 0.5718 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.821e-05/0.2838, allocations: 101 kB / 0.5719 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.952e-05/0.2838, allocations: 176.3 kB / 0.5721 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.21e-05/0.2839, allocations: 188.2 kB / 0.5722 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.716e-05/0.284, allocations: 180.3 kB / 0.5724 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.887e-05/0.2841, allocations: 184.2 kB / 0.5726 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.2842, allocations: 303.7 kB / 0.5729 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.455e-05/0.2843, allocations: 116.9 kB / 0.573 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.025e-05/0.2844, allocations: 188.3 kB / 0.5732 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.93e-05/0.2844, allocations: 104.9 kB / 0.5733 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/0.2845, allocations: 176.3 kB / 0.5734 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.445e-05/0.2846, allocations: 108.9 kB / 0.5735 GB, free: 7.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.005e-05/0.2846, allocations: 79.22 kB / 0.5736 GB, free: 7.852 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2846, allocations: 4 kB / 0.5736 GB, free: 7.848 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.2851, allocations: 143.6 kB / 0.5738 GB, free: 7.707 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.0007598/0.2859, allocations: 401 kB / 0.5741 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.73e-05/0.2859, allocations: 0 / 0.5741 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.2859, allocations: 4 kB / 0.5741 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.803e-06/0.2859, allocations: 0 / 0.5741 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.2863, allocations: 459.6 kB / 0.5746 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001674/0.2865, allocations: 174.1 kB / 0.5747 GB, free: 6.648 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.2867, allocations: 0.6728 MB / 0.5754 GB, free: 5.949 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.759e-05/0.2868, allocations: 7.438 kB / 0.5754 GB, free: 5.941 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2868, allocations: 8 kB / 0.5754 GB, free: 5.934 MB / 414.1 MB Notification: Performance of Templates: time 0.005103/0.2919, allocations: 2.842 MB / 0.5782 GB, free: 3.09 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: 7.940386331873015]