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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 110.4 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001365, allocations: 183.1 kB / 18.7 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2057/0.2057, allocations: 44.19 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001393, allocations: 63.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3589, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00159/0.3605, allocations: 488.6 kB / 0.5189 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003368/0.3639, allocations: 2.19 MB / 0.521 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.1e-06/0.364, allocations: 1.25 kB / 0.521 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.097e-06/0.364, allocations: 0 / 0.521 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.502e-06/0.364, allocations: 0 / 0.521 GB, free: 1.469 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.002598/0.3666, allocations: 0.6139 MB / 0.5216 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.762e-05/0.3667, allocations: 6.938 kB / 0.5216 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.886e-05/0.3667, allocations: 0.5625 kB / 0.5216 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.863e-05/0.3668, allocations: 14.53 kB / 0.5216 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.681e-05/0.3668, allocations: 9.828 kB / 0.5216 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.528e-06/0.3668, allocations: 0 / 0.5216 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.3682, allocations: 0.6373 MB / 0.5223 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.325e-06/0.3682, allocations: 4 kB / 0.5223 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.336e-05/0.3683, allocations: 2.156 kB / 0.5223 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.3694, allocations: 428.3 kB / 0.5227 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3694, allocations: 3.938 kB / 0.5227 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3694, allocations: 0.7031 kB / 0.5227 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3695, allocations: 2.844 kB / 0.5227 GB, free: 0.8672 MB / 382.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.0006043/0.3701, allocations: 417.4 kB / 0.5231 GB, free: 456 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3701, allocations: 10.53 kB / 0.5231 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.55e-05/0.3702, allocations: 111.8 kB / 0.5232 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.43e-05/0.3702, allocations: 76.22 kB / 0.5233 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.3703, allocations: 236.9 kB / 0.5235 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.728e-05/0.3704, allocations: 157.6 kB / 0.5236 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.195e-05/0.3705, allocations: 154.5 kB / 0.5238 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.131e-05/0.3705, allocations: 105 kB / 0.5239 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.3706, allocations: 84.44 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.62e-05/0.3707, allocations: 157.4 kB / 0.5241 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.479e-05/0.3707, allocations: 154.5 kB / 0.5243 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.829e-05/0.3708, allocations: 151.6 kB / 0.5244 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003069/0.3711, allocations: 441 kB / 0.5248 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.614e-05/0.3712, allocations: 177.1 kB / 0.525 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.847e-05/0.3712, allocations: 80.84 kB / 0.5251 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.3713, allocations: 79.22 kB / 0.5252 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.054e-05/0.3714, allocations: 139.3 kB / 0.5253 GB, free: 14.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.473e-06/0.3714, allocations: 0 / 0.5253 GB, free: 14.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.839e-05/0.3715, allocations: 30.41 kB / 0.5253 GB, free: 14.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.1e-05/0.3715, allocations: 155.6 kB / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.399e-05/0.3716, allocations: 89.86 kB / 0.5256 GB, free: 13.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.3716, allocations: 25.7 kB / 0.5256 GB, free: 13.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.742e-05/0.3716, allocations: 88.08 kB / 0.5257 GB, free: 13.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-06/0.3716, allocations: 2.5 kB / 0.5257 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.3717, allocations: 14.94 kB / 0.5257 GB, free: 13.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3718, allocations: 311.5 kB / 0.526 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.42e-06/0.3718, allocations: 4 kB / 0.526 GB, free: 13.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.673e-05/0.3719, allocations: 7.188 kB / 0.526 GB, free: 13.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.827e-05/0.3719, allocations: 75.28 kB / 0.5261 GB, free: 13.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-05/0.3719, allocations: 75.89 kB / 0.5261 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.575e-05/0.372, allocations: 32.52 kB / 0.5262 GB, free: 13.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.372, allocations: 80.81 kB / 0.5262 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/0.3721, allocations: 77.56 kB / 0.5263 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.194e-05/0.3721, allocations: 163.1 kB / 0.5265 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.023e-05/0.3722, allocations: 85.42 kB / 0.5266 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.579e-05/0.3722, allocations: 155.1 kB / 0.5267 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.06e-05/0.3723, allocations: 77.69 kB / 0.5268 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.3724, allocations: 75.8 kB / 0.5268 GB, free: 12.43 MB / 398.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.0001297/0.3725, allocations: 260.7 kB / 0.5271 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.3726, allocations: 115.3 kB / 0.5272 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.3726, allocations: 109.8 kB / 0.5273 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.02e-05/0.3727, allocations: 185.8 kB / 0.5275 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001101/0.3728, allocations: 178.5 kB / 0.5277 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001244/0.3729, allocations: 176.9 kB / 0.5278 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.3732, allocations: 409.3 kB / 0.5282 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.762e-05/0.3732, allocations: 106.7 kB / 0.5283 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.592e-05/0.3733, allocations: 106.6 kB / 0.5284 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.345e-05/0.3733, allocations: 178 kB / 0.5286 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.815e-05/0.3734, allocations: 178.1 kB / 0.5288 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001288/0.3735, allocations: 182 kB / 0.5289 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.628e-05/0.3736, allocations: 186.9 kB / 0.5291 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001842/0.3738, allocations: 308.7 kB / 0.5294 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.165e-05/0.3739, allocations: 184.2 kB / 0.5296 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/0.3739, allocations: 178.5 kB / 0.5297 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.864e-05/0.374, allocations: 111.5 kB / 0.5299 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3741, allocations: 186.3 kB / 0.53 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.3742, allocations: 102.9 kB / 0.5301 GB, free: 8.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.419e-05/0.3742, allocations: 75.28 kB / 0.5302 GB, free: 8.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3742, allocations: 0 / 0.5302 GB, free: 8.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007194/0.3749, allocations: 129.3 kB / 0.5303 GB, free: 8.785 MB / 398.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.001527/0.3764, allocations: 1.045 MB / 0.5313 GB, free: 7.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.365e-05/0.3765, allocations: 5.688 kB / 0.5314 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3765, allocations: 3.938 kB / 0.5314 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.355e-06/0.3765, allocations: 0 / 0.5314 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.3769, allocations: 463.9 kB / 0.5318 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006226/0.3775, allocations: 233.8 kB / 0.532 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.3778, allocations: 0.6733 MB / 0.5327 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.805e-06/0.3778, allocations: 4 kB / 0.5327 GB, free: 6.535 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.856e-05/0.3778, allocations: 9.312 kB / 0.5327 GB, free: 6.527 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3778, allocations: 0 / 0.5327 GB, free: 6.527 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.4014, allocations: 3.963 MB / 0.5366 GB, free: 4.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/8.077, allocations: 9.25 kB / 0.5366 GB, free: 4.715 MB / 398.1 MB (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) 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) Reference file matches