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.001269/0.001269, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001466/0.001466, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2148/0.2148, allocations: 44.93 MB / 359.6 MB, free: 6.059 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: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="cs",version="2.0",platforms={"static"}) [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.002243/0.002243, allocations: 59.91 kB / 0.4938 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.305, allocations: 65.48 MB / 0.5577 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001641/0.3067, allocations: 492.9 kB / 0.5582 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003436/0.3101, allocations: 2.167 MB / 0.5603 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.839e-06/0.3101, allocations: 0 / 0.5603 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.527e-06/0.3101, allocations: 0 / 0.5603 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.152e-06/0.3101, allocations: 3.938 kB / 0.5603 GB, free: 4.871 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.002113/0.3122, allocations: 0.6289 MB / 0.5609 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.883e-05/0.3123, allocations: 7.984 kB / 0.5609 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.516e-05/0.3123, allocations: 11.98 kB / 0.5609 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.3125, allocations: 15.94 kB / 0.561 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.441e-05/0.3125, allocations: 7.984 kB / 0.561 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-06/0.3125, allocations: 0 / 0.561 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001075/0.3136, allocations: 0.6627 MB / 0.5616 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.144e-06/0.3136, allocations: 0 / 0.5616 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.767e-05/0.3136, allocations: 7.984 kB / 0.5616 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006626/0.3143, allocations: 447.2 kB / 0.562 GB, free: 3.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3143, allocations: 4 kB / 0.562 GB, free: 3.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3143, allocations: 0 / 0.562 GB, free: 3.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.3143, allocations: 0 / 0.562 GB, free: 3.094 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.0004473/0.3147, allocations: 355.3 kB / 0.5624 GB, free: 2.711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3148, allocations: 11.97 kB / 0.5624 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.464e-05/0.3148, allocations: 79.47 kB / 0.5625 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.845e-05/0.3149, allocations: 106 kB / 0.5626 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.317e-05/0.315, allocations: 76.22 kB / 0.5626 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.3151, allocations: 177.8 kB / 0.5628 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.163e-05/0.3152, allocations: 158.7 kB / 0.563 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.732e-05/0.3152, allocations: 154.5 kB / 0.5631 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.319e-05/0.3153, allocations: 109 kB / 0.5632 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.511e-05/0.3154, allocations: 75.28 kB / 0.5633 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.878e-05/0.3155, allocations: 162.5 kB / 0.5634 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.54e-05/0.3155, allocations: 154.5 kB / 0.5636 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.679e-05/0.3156, allocations: 150.6 kB / 0.5637 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003077/0.3159, allocations: 413 kB / 0.5641 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.316, allocations: 173.1 kB / 0.5643 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.978e-05/0.3161, allocations: 80.14 kB / 0.5644 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.3161, allocations: 75.28 kB / 0.5644 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001117/0.3162, allocations: 139.5 kB / 0.5646 GB, free: 352 kB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.22e-07/0.3162, allocations: 4 kB / 0.5646 GB, free: 348 kB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.666e-05/0.3163, allocations: 29.69 kB / 0.5646 GB, free: 312 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/0.3164, allocations: 156.4 kB / 0.5648 GB, free: 136 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.659e-05/0.3164, allocations: 89.86 kB / 0.5648 GB, free: 36 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.3164, allocations: 25.7 kB / 0.5649 GB, free: 4 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.307e-05/0.3165, allocations: 84.08 kB / 0.5649 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.3165, allocations: 0 / 0.5649 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.3165, allocations: 17.72 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.3167, allocations: 314.8 kB / 0.5653 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.109e-06/0.3167, allocations: 0 / 0.5653 GB, free: 15.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.712e-05/0.3168, allocations: 25.7 kB / 0.5653 GB, free: 15.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.09e-05/0.3168, allocations: 83.25 kB / 0.5654 GB, free: 15.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.28e-05/0.3169, allocations: 83.27 kB / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.615e-05/0.3169, allocations: 33.7 kB / 0.5655 GB, free: 15.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.686e-05/0.317, allocations: 83.28 kB / 0.5656 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.552e-05/0.317, allocations: 75.28 kB / 0.5656 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-05/0.3171, allocations: 154.5 kB / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.154e-05/0.3171, allocations: 75.28 kB / 0.5659 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.282e-05/0.3172, allocations: 162.5 kB / 0.566 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.987e-05/0.3173, allocations: 75.33 kB / 0.5661 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/0.3173, allocations: 87.27 kB / 0.5662 GB, free: 14.64 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.0001335/0.3174, allocations: 264.3 kB / 0.5664 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.3175, allocations: 108.9 kB / 0.5665 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.112e-05/0.3176, allocations: 107.8 kB / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.689e-05/0.3177, allocations: 184.2 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.001e-05/0.3177, allocations: 184.2 kB / 0.567 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.16e-05/0.3178, allocations: 176.3 kB / 0.5671 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.318, allocations: 376.2 kB / 0.5675 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.204e-05/0.3181, allocations: 101 kB / 0.5676 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.169e-05/0.3181, allocations: 112.9 kB / 0.5677 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.811e-05/0.3182, allocations: 184.3 kB / 0.5679 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.49e-05/0.3183, allocations: 184.2 kB / 0.5681 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.958e-05/0.3184, allocations: 180.2 kB / 0.5682 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.141e-05/0.3185, allocations: 180.3 kB / 0.5684 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.3186, allocations: 311.7 kB / 0.5687 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.61e-05/0.3187, allocations: 105 kB / 0.5688 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.243e-05/0.3188, allocations: 184.2 kB / 0.569 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.651e-05/0.3188, allocations: 105 kB / 0.5691 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-05/0.3189, allocations: 188.2 kB / 0.5692 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/0.319, allocations: 101 kB / 0.5693 GB, free: 11.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.57e-05/0.319, allocations: 75.28 kB / 0.5694 GB, free: 11.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.319, allocations: 3.938 kB / 0.5694 GB, free: 11.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004962/0.3195, allocations: 143.6 kB / 0.5696 GB, free: 10.96 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.001113/0.3206, allocations: 1.04 MB / 0.5706 GB, free: 9.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.037e-05/0.3207, allocations: 4 kB / 0.5706 GB, free: 9.891 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3207, allocations: 0 / 0.5706 GB, free: 9.891 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.613e-06/0.3207, allocations: 0 / 0.5706 GB, free: 9.891 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3211, allocations: 459.7 kB / 0.571 GB, free: 9.438 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004423/0.3215, allocations: 250 kB / 0.5713 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.468e-05/0.3215, allocations: 55.36 kB / 0.5713 GB, free: 9.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.562e-06/0.3216, allocations: 0 / 0.5713 GB, free: 9.078 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.73e-05/0.3216, allocations: 11.42 kB / 0.5713 GB, free: 9.066 MB / 414.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3216, allocations: 0 / 0.5713 GB, free: 9.066 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.347, allocations: 4.369 MB / 0.5756 GB, free: 4.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.77, allocations: 15.81 kB / 0.5756 GB, free: 4.828 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] 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: 14.614043890032917]