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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 119.9 kB / 18.45 MB, free: 4.594 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 190 kB / 21.39 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 222.9 MB / 247.1 MB, free: 4.199 MB / 190.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.3336/0.3336, allocations: 44.24 MB / 343.5 MB, free: 7.59 MB / 270.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 67.22 kB / 478.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.151, allocations: 60.83 MB / 0.527 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001909/0.153, allocations: 497 kB / 0.5275 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003757/0.1568, allocations: 2.184 MB / 0.5296 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.282e-06/0.1568, allocations: 0 / 0.5296 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.456e-06/0.1568, allocations: 3.938 kB / 0.5296 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.333e-06/0.1568, allocations: 0 / 0.5296 GB, free: 10.99 MB / 398.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.002463/0.1593, allocations: 0.6125 MB / 0.5302 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.837e-05/0.1594, allocations: 12 kB / 0.5302 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.199e-05/0.1594, allocations: 0 / 0.5302 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.876e-05/0.1595, allocations: 7.938 kB / 0.5302 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.743e-05/0.1596, allocations: 11.97 kB / 0.5302 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.1596, allocations: 0 / 0.5302 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001302/0.1609, allocations: 0.6437 MB / 0.5309 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-06/0.1609, allocations: 0 / 0.5309 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.1609, allocations: 0 / 0.5309 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008662/0.1618, allocations: 431.1 kB / 0.5313 GB, free: 9.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1618, allocations: 0 / 0.5313 GB, free: 9.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1618, allocations: 0 / 0.5313 GB, free: 9.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1618, allocations: 0 / 0.5313 GB, free: 9.281 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.0005029/0.1623, allocations: 428.4 kB / 0.5317 GB, free: 8.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1624, allocations: 12.03 kB / 0.5317 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.377e-05/0.1625, allocations: 114 kB / 0.5318 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.741e-05/0.1625, allocations: 76.22 kB / 0.5319 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.1627, allocations: 235.7 kB / 0.5321 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.629e-05/0.1628, allocations: 154.9 kB / 0.5322 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.538e-05/0.1629, allocations: 154.5 kB / 0.5324 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.045e-05/0.163, allocations: 104.9 kB / 0.5325 GB, free: 7.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.874e-05/0.163, allocations: 79.28 kB / 0.5326 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-05/0.1631, allocations: 150.6 kB / 0.5327 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.253e-05/0.1632, allocations: 154.5 kB / 0.5329 GB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.621e-05/0.1633, allocations: 162.5 kB / 0.533 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003945/0.1637, allocations: 438 kB / 0.5334 GB, free: 6.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.1638, allocations: 173.1 kB / 0.5336 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.576e-05/0.1639, allocations: 80.14 kB / 0.5337 GB, free: 6.641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.164, allocations: 79.28 kB / 0.5337 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/0.1641, allocations: 139.5 kB / 0.5339 GB, free: 6.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.232e-06/0.1641, allocations: 0 / 0.5339 GB, free: 6.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.619e-05/0.1642, allocations: 33.7 kB / 0.5339 GB, free: 6.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.1643, allocations: 160.3 kB / 0.5341 GB, free: 6.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.629e-05/0.1644, allocations: 89.86 kB / 0.5342 GB, free: 6.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1644, allocations: 29.7 kB / 0.5342 GB, free: 6.062 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.135e-05/0.1644, allocations: 80.14 kB / 0.5343 GB, free: 5.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-06/0.1644, allocations: 0 / 0.5343 GB, free: 5.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.744e-05/0.1645, allocations: 13.77 kB / 0.5343 GB, free: 5.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.1647, allocations: 314.8 kB / 0.5346 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.2e-06/0.1647, allocations: 4 kB / 0.5346 GB, free: 5.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.847e-05/0.1648, allocations: 8 kB / 0.5346 GB, free: 5.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.931e-05/0.1648, allocations: 75.28 kB / 0.5347 GB, free: 5.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.381e-05/0.1648, allocations: 75.28 kB / 0.5347 GB, free: 5.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.711e-05/0.1649, allocations: 37.56 kB / 0.5348 GB, free: 5.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.783e-05/0.165, allocations: 84.84 kB / 0.5348 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.645e-05/0.165, allocations: 75.28 kB / 0.5349 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.056e-05/0.1651, allocations: 158.5 kB / 0.5351 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.524e-05/0.1651, allocations: 75.28 kB / 0.5351 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.003e-05/0.1652, allocations: 154.6 kB / 0.5353 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.1653, allocations: 79.22 kB / 0.5354 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.1654, allocations: 79.28 kB / 0.5354 GB, free: 4.746 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.0001712/0.1656, allocations: 268.4 kB / 0.5357 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.425e-05/0.1656, allocations: 108.9 kB / 0.5358 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.001e-05/0.1657, allocations: 112.1 kB / 0.5359 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-05/0.1658, allocations: 180.2 kB / 0.5361 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001392/0.166, allocations: 176.3 kB / 0.5362 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00012/0.1661, allocations: 188.2 kB / 0.5364 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.1664, allocations: 413.1 kB / 0.5368 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.417e-05/0.1665, allocations: 101 kB / 0.5369 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.643e-05/0.1665, allocations: 104.9 kB / 0.537 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.421e-05/0.1666, allocations: 188.2 kB / 0.5372 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.986e-05/0.1667, allocations: 180.3 kB / 0.5374 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.233e-05/0.1668, allocations: 180.2 kB / 0.5375 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.104e-05/0.1669, allocations: 180.3 kB / 0.5377 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/0.1671, allocations: 311.7 kB / 0.538 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.676e-05/0.1672, allocations: 182.1 kB / 0.5382 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.63e-05/0.1673, allocations: 180.2 kB / 0.5383 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.1674, allocations: 105 kB / 0.5384 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.24e-05/0.1675, allocations: 188.2 kB / 0.5386 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.585e-05/0.1675, allocations: 101 kB / 0.5387 GB, free: 1.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.659e-05/0.1676, allocations: 75.28 kB / 0.5388 GB, free: 1.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1676, allocations: 0 / 0.5388 GB, free: 1.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005205/0.1681, allocations: 131.7 kB / 0.5389 GB, free: 0.9453 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.001298/0.1694, allocations: 1.051 MB / 0.5399 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.586e-05/0.1695, allocations: 8 kB / 0.54 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1695, allocations: 0 / 0.54 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.268e-06/0.1695, allocations: 0 / 0.54 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.1699, allocations: 459.6 kB / 0.5404 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004422/0.1704, allocations: 233.7 kB / 0.5406 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.1707, allocations: 0.6766 MB / 0.5413 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1707, allocations: 3.938 kB / 0.5413 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.395e-05/0.1708, allocations: 7.438 kB / 0.5413 GB, free: 14.43 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1708, allocations: 0 / 0.5413 GB, free: 14.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.2005, allocations: 3.967 MB / 0.5452 GB, free: 10.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.344, allocations: 3.938 kB / 0.5452 GB, free: 10.55 MB / 414.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.344222574029118]