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.001241/0.001241, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001239/0.001239, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.465/1.465, allocations: 222.9 MB / 242.4 MB, free: 15.12 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.2371/0.2371, allocations: 44.19 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002779/0.002779, allocations: 67.88 kB / 470 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4245, allocations: 60.82 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001643/0.4262, allocations: 0.4898 MB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0032/0.4294, allocations: 2.181 MB / 0.521 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.355e-05/0.4295, allocations: 5.562 kB / 0.521 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.859e-06/0.4295, allocations: 0 / 0.521 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.343e-06/0.4295, allocations: 0 / 0.521 GB, free: 1.441 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.002371/0.4319, allocations: 0.6025 MB / 0.5216 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.647e-05/0.4319, allocations: 9.703 kB / 0.5216 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.432, allocations: 1.828 kB / 0.5216 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.4321, allocations: 9.828 kB / 0.5216 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.086e-05/0.4322, allocations: 9.281 kB / 0.5216 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.4322, allocations: 4 kB / 0.5216 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.4335, allocations: 0.6386 MB / 0.5223 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.115e-05/0.4336, allocations: 0 / 0.5223 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.025e-05/0.4336, allocations: 2.531 kB / 0.5223 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009608/0.4346, allocations: 428.2 kB / 0.5227 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4346, allocations: 4 kB / 0.5227 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.4346, allocations: 1.375 kB / 0.5227 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.4346, allocations: 0 / 0.5227 GB, free: 0.8516 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.0005039/0.4351, allocations: 426.9 kB / 0.5231 GB, free: 432 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.4352, allocations: 13.31 kB / 0.5231 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.47e-05/0.4353, allocations: 112.3 kB / 0.5232 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.589e-05/0.4353, allocations: 81.69 kB / 0.5233 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.4355, allocations: 237 kB / 0.5235 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-05/0.4356, allocations: 150.9 kB / 0.5237 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.48e-05/0.4357, allocations: 163.9 kB / 0.5238 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.4358, allocations: 101.7 kB / 0.5239 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.706e-05/0.4358, allocations: 75.28 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.436, allocations: 152.6 kB / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.549e-05/0.4361, allocations: 150.6 kB / 0.5243 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.724e-05/0.4361, allocations: 156.1 kB / 0.5244 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.4366, allocations: 448.4 kB / 0.5249 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.4368, allocations: 170.8 kB / 0.525 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.99e-05/0.4368, allocations: 88.12 kB / 0.5251 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.274e-05/0.4369, allocations: 75.98 kB / 0.5252 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.437, allocations: 144.5 kB / 0.5253 GB, free: 14.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.437, allocations: 1.094 kB / 0.5253 GB, free: 14.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 9.962e-05/0.4371, allocations: 27.53 kB / 0.5253 GB, free: 14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.4373, allocations: 154.3 kB / 0.5255 GB, free: 13.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.923e-05/0.4374, allocations: 89.86 kB / 0.5256 GB, free: 13.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.4374, allocations: 26.77 kB / 0.5256 GB, free: 13.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.169e-05/0.4375, allocations: 85.84 kB / 0.5257 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-06/0.4375, allocations: 0 / 0.5257 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.4375, allocations: 19.64 kB / 0.5257 GB, free: 13.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.4378, allocations: 310.8 kB / 0.526 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.683e-06/0.4378, allocations: 0 / 0.526 GB, free: 13.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.568e-05/0.4378, allocations: 3.594 kB / 0.526 GB, free: 13.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.425e-05/0.4379, allocations: 75.84 kB / 0.5261 GB, free: 13.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.947e-05/0.4379, allocations: 75.28 kB / 0.5261 GB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.219e-05/0.438, allocations: 40.59 kB / 0.5262 GB, free: 13.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.021e-05/0.4381, allocations: 88.55 kB / 0.5263 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.243e-05/0.4381, allocations: 77.06 kB / 0.5263 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000116/0.4383, allocations: 160 kB / 0.5265 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.768e-05/0.4383, allocations: 79.95 kB / 0.5266 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-05/0.4384, allocations: 156.3 kB / 0.5267 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.87e-05/0.4385, allocations: 77.62 kB / 0.5268 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.268e-05/0.4386, allocations: 77.03 kB / 0.5269 GB, free: 12.41 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.0002334/0.4388, allocations: 266.6 kB / 0.5271 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.559e-05/0.4389, allocations: 111.5 kB / 0.5272 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.366e-05/0.439, allocations: 106.5 kB / 0.5273 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/0.4392, allocations: 182.8 kB / 0.5275 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.689e-05/0.4392, allocations: 181.6 kB / 0.5277 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.742e-05/0.4394, allocations: 185.2 kB / 0.5278 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/0.4397, allocations: 405.1 kB / 0.5282 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.041e-05/0.4398, allocations: 106.7 kB / 0.5283 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.912e-05/0.4398, allocations: 105.7 kB / 0.5284 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001065/0.4399, allocations: 178.2 kB / 0.5286 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.44, allocations: 183 kB / 0.5288 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000111/0.4402, allocations: 186.5 kB / 0.529 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001119/0.4403, allocations: 180.8 kB / 0.5291 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001849/0.4405, allocations: 306.7 kB / 0.5294 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.4406, allocations: 187.4 kB / 0.5296 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.4407, allocations: 183.4 kB / 0.5298 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.076e-05/0.4408, allocations: 102.6 kB / 0.5299 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.441, allocations: 182.3 kB / 0.5301 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.093e-05/0.441, allocations: 103 kB / 0.5301 GB, free: 8.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.925e-05/0.4411, allocations: 76.17 kB / 0.5302 GB, free: 8.785 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4411, allocations: 0 / 0.5302 GB, free: 8.785 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007967/0.4419, allocations: 137.4 kB / 0.5304 GB, free: 8.754 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.00128/0.4432, allocations: 1.044 MB / 0.5314 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.359e-05/0.4432, allocations: 0.9688 kB / 0.5314 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/0.4432, allocations: 1.281 kB / 0.5314 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.4433, allocations: 7.875 kB / 0.5314 GB, free: 7.879 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.4437, allocations: 466 kB / 0.5318 GB, free: 7.426 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004693/0.4441, allocations: 227.8 kB / 0.532 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.4445, allocations: 0.6776 MB / 0.5327 GB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.362e-06/0.4445, allocations: 0 / 0.5327 GB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.4445, allocations: 9.062 kB / 0.5327 GB, free: 6.492 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4445, allocations: 0 / 0.5327 GB, free: 6.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.4751, allocations: 3.953 MB / 0.5366 GB, free: 4.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.526/9.001, allocations: 6.125 kB / 0.5366 GB, free: 4.691 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