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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001749/0.001749, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009909/0.0009909, allocations: 119 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3549/0.3549, allocations: 44.84 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 63.91 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3237, allocations: 62.01 MB / 0.5151 GB, free: 37.74 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001454/0.3252, allocations: 0.5483 MB / 0.5157 GB, free: 37.4 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.3278, allocations: 2.368 MB / 0.518 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.3e-06/0.3278, allocations: 0 / 0.518 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.568e-06/0.3279, allocations: 0 / 0.518 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.712e-06/0.3279, allocations: 0 / 0.518 GB, free: 35.77 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-85: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:87:5-157: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:159:5-233: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:235:5-313: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.001847/0.3297, allocations: 0.5218 MB / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.351e-05/0.3298, allocations: 5.719 kB / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.23e-05/0.3298, allocations: 2.906 kB / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.3299, allocations: 20.97 kB / 0.5185 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.281e-05/0.33, allocations: 5.719 kB / 0.5185 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.332e-06/0.33, allocations: 0 / 0.5185 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007985/0.3308, allocations: 0.6179 MB / 0.5191 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-06/0.3308, allocations: 3.031 kB / 0.5191 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.048e-05/0.3308, allocations: 7.031 kB / 0.5192 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000508/0.3314, allocations: 431.4 kB / 0.5196 GB, free: 35.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3314, allocations: 0 / 0.5196 GB, free: 35.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3314, allocations: 0 / 0.5196 GB, free: 35.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.3314, allocations: 2.719 kB / 0.5196 GB, free: 35.2 MB / 378.7 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.0003187/0.3317, allocations: 425.4 kB / 0.52 GB, free: 34.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.3317, allocations: 8.219 kB / 0.52 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.558e-05/0.3318, allocations: 86.69 kB / 0.5201 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.443e-05/0.3319, allocations: 235.7 kB / 0.5203 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3319, allocations: 158.9 kB / 0.5204 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/0.3319, allocations: 154.7 kB / 0.5206 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.216e-05/0.332, allocations: 104.2 kB / 0.5207 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.332, allocations: 75.28 kB / 0.5208 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.332, allocations: 158.6 kB / 0.5209 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.679e-05/0.3321, allocations: 153.7 kB / 0.5211 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.65e-05/0.3321, allocations: 154.5 kB / 0.5212 GB, free: 33.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.3323, allocations: 444.6 kB / 0.5216 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.981e-05/0.3323, allocations: 169.1 kB / 0.5218 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.945e-05/0.3324, allocations: 86.89 kB / 0.5219 GB, free: 32.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.3324, allocations: 75.28 kB / 0.5219 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.3324, allocations: 131.5 kB / 0.5221 GB, free: 32.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.233e-06/0.3324, allocations: 0 / 0.5221 GB, free: 32.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.771e-05/0.3325, allocations: 35.66 kB / 0.5221 GB, free: 32.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.3326, allocations: 160.4 kB / 0.5223 GB, free: 32.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.794e-05/0.3326, allocations: 89.86 kB / 0.5223 GB, free: 32.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.524e-06/0.3326, allocations: 25.7 kB / 0.5224 GB, free: 32.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.585e-05/0.3326, allocations: 82.73 kB / 0.5224 GB, free: 32.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.3326, allocations: 0 / 0.5224 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.118e-05/0.3326, allocations: 12.38 kB / 0.5225 GB, free: 32.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.573e-05/0.3327, allocations: 313.4 kB / 0.5228 GB, free: 31.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.661e-06/0.3327, allocations: 0 / 0.5228 GB, free: 31.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.439e-05/0.3327, allocations: 9.969 kB / 0.5228 GB, free: 31.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.305e-05/0.3328, allocations: 75.28 kB / 0.5228 GB, free: 31.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.3328, allocations: 75.28 kB / 0.5229 GB, free: 31.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.502e-05/0.3328, allocations: 36.23 kB / 0.5229 GB, free: 31.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3329, allocations: 80.66 kB / 0.523 GB, free: 31.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.3329, allocations: 79.22 kB / 0.5231 GB, free: 31.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.315e-05/0.3329, allocations: 160.9 kB / 0.5232 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.137e-05/0.3329, allocations: 82.55 kB / 0.5233 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/0.333, allocations: 150.6 kB / 0.5235 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.045e-05/0.333, allocations: 81.81 kB / 0.5235 GB, free: 30.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.333, allocations: 75.28 kB / 0.5236 GB, free: 30.88 MB / 378.7 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 6.596e-05/0.3331, allocations: 259.1 kB / 0.5239 GB, free: 30.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.89e-05/0.3332, allocations: 119.7 kB / 0.524 GB, free: 30.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.196e-05/0.3332, allocations: 111.7 kB / 0.5241 GB, free: 30.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.648e-05/0.3332, allocations: 183.3 kB / 0.5243 GB, free: 30.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.606e-05/0.3332, allocations: 180.2 kB / 0.5244 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.193e-05/0.3333, allocations: 176.3 kB / 0.5246 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.3334, allocations: 407.4 kB / 0.525 GB, free: 29.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/0.3334, allocations: 108.9 kB / 0.5251 GB, free: 29.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.383e-05/0.3334, allocations: 101 kB / 0.5252 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.02e-05/0.3335, allocations: 190.4 kB / 0.5254 GB, free: 28.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.3335, allocations: 176.3 kB / 0.5255 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.057e-05/0.3335, allocations: 183.1 kB / 0.5257 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-05/0.3336, allocations: 176.3 kB / 0.5259 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/0.3338, allocations: 0.8486 MB / 0.5267 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.74e-05/0.3338, allocations: 182 kB / 0.5269 GB, free: 27.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.3338, allocations: 187.1 kB / 0.5271 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.324e-05/0.3339, allocations: 116.9 kB / 0.5272 GB, free: 27.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/0.3339, allocations: 182.5 kB / 0.5273 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.3339, allocations: 101 kB / 0.5274 GB, free: 26.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.246e-05/0.334, allocations: 79.22 kB / 0.5275 GB, free: 26.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.334, allocations: 0 / 0.5275 GB, free: 26.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005632/0.3345, allocations: 140.5 kB / 0.5277 GB, free: 26.64 MB / 378.7 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.0007368/0.3353, allocations: 418.8 kB / 0.5281 GB, free: 26.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 3.84e-05/0.3353, allocations: 7 kB / 0.5281 GB, free: 26.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3353, allocations: 0 / 0.5281 GB, free: 26.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.873e-06/0.3353, allocations: 0 / 0.5281 GB, free: 26.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.3356, allocations: 0.523 MB / 0.5286 GB, free: 25.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001029/0.3357, allocations: 144.5 kB / 0.5287 GB, free: 25.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.464e-05/0.3358, allocations: 0.6721 MB / 0.5294 GB, free: 25.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.3358, allocations: 3.938 kB / 0.5294 GB, free: 25.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.332e-06/0.3358, allocations: 7.438 kB / 0.5294 GB, free: 25.04 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3358, allocations: 0 / 0.5294 GB, free: 25.04 MB / 378.7 MB Notification: Performance of Templates: time 0.00611/0.3419, allocations: 3.163 MB / 0.5325 GB, free: 24.71 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches