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.0008714/0.0008715, allocations: 91.05 kB / 17.35 MB, free: 6.375 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.0007562/0.000756, allocations: 179.7 kB / 18.26 MB, free: 5.52 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.309/1.309, allocations: 223.3 MB / 242.3 MB, free: 14.49 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.1788/0.1788, allocations: 44.25 MB / 337.7 MB, free: 2.426 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004436/0.0004436, allocations: 11.98 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1497, allocations: 61.93 MB / 472.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0007215/0.1505, allocations: 214.9 kB / 472.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003507/0.154, allocations: 2.26 MB / 474.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.112e-06/0.1541, allocations: 0 / 474.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.39e-06/0.1541, allocations: 0 / 474.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.278e-06/0.1541, allocations: 0 / 474.8 MB, free: 10.75 MB / 350.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.0019/0.156, allocations: 0.5094 MB / 475.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.229e-05/0.156, allocations: 8 kB / 475.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.807e-05/0.1561, allocations: 4 kB / 475.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.026e-05/0.1562, allocations: 11.92 kB / 475.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.268e-05/0.1562, allocations: 11.98 kB / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.07e-06/0.1562, allocations: 0 / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009835/0.1572, allocations: 0.5891 MB / 475.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-06/0.1572, allocations: 0 / 475.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.329e-05/0.1573, allocations: 29.7 kB / 476 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006105/0.1579, allocations: 439.3 kB / 476.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1579, allocations: 0 / 476.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1579, allocations: 0 / 476.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1579, allocations: 0 / 476.4 MB, free: 9.148 MB / 350.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.0004483/0.1584, allocations: 417.3 kB / 476.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.1584, allocations: 8.031 kB / 476.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.255e-05/0.1585, allocations: 110 kB / 476.9 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.412e-05/0.1586, allocations: 76.22 kB / 477 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.1587, allocations: 239.7 kB / 477.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.433e-05/0.1587, allocations: 154.9 kB / 477.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.1588, allocations: 154.5 kB / 477.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.401e-05/0.1589, allocations: 101 kB / 477.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.982e-05/0.1589, allocations: 79.22 kB / 477.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.565e-05/0.159, allocations: 158.6 kB / 477.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.405e-05/0.1591, allocations: 150.6 kB / 478 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.851e-05/0.1591, allocations: 158.5 kB / 478.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002919/0.1594, allocations: 441.9 kB / 478.6 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.745e-05/0.1595, allocations: 173.1 kB / 478.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.392e-05/0.1596, allocations: 88.08 kB / 478.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.1596, allocations: 79.28 kB / 478.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.935e-05/0.1597, allocations: 135.5 kB / 479.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.21e-07/0.1597, allocations: 0 / 479.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.508e-05/0.1598, allocations: 29.7 kB / 479.1 MB, free: 6.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.1599, allocations: 152.4 kB / 479.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.854e-05/0.1599, allocations: 93.86 kB / 479.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1599, allocations: 29.64 kB / 479.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.554e-05/0.16, allocations: 80.14 kB / 479.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-06/0.16, allocations: 0 / 479.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.16, allocations: 9.719 kB / 479.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1601, allocations: 314.8 kB / 479.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-06/0.1601, allocations: 3.938 kB / 479.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.793e-05/0.1602, allocations: 0 / 479.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.582e-05/0.1602, allocations: 79.31 kB / 479.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.474e-05/0.1602, allocations: 79.28 kB / 479.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.431e-05/0.1603, allocations: 37.62 kB / 480 MB, free: 5.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.663e-05/0.1604, allocations: 79.28 kB / 480 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.824e-05/0.1604, allocations: 79.28 kB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.856e-05/0.1605, allocations: 154.5 kB / 480.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.563e-05/0.1605, allocations: 75.28 kB / 480.3 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-05/0.1606, allocations: 158.5 kB / 480.5 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.24e-05/0.1607, allocations: 83.33 kB / 480.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.1608, allocations: 75.44 kB / 480.6 MB, free: 4.637 MB / 350.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.0001238/0.1609, allocations: 272.3 kB / 480.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.72e-05/0.1609, allocations: 108.9 kB / 481 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.641e-05/0.161, allocations: 104.1 kB / 481.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-05/0.1611, allocations: 184.2 kB / 481.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.48e-05/0.1611, allocations: 180.3 kB / 481.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.458e-05/0.1612, allocations: 188.2 kB / 481.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.1615, allocations: 397.2 kB / 482 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.553e-05/0.1615, allocations: 105 kB / 482.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.307e-05/0.1616, allocations: 108.9 kB / 482.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.77e-05/0.1616, allocations: 184.2 kB / 482.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.248e-05/0.1617, allocations: 180.2 kB / 482.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.962e-05/0.1618, allocations: 188.3 kB / 482.8 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.383e-05/0.1618, allocations: 176.3 kB / 483 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.162, allocations: 315.7 kB / 483.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.907e-05/0.1621, allocations: 186 kB / 483.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.172e-05/0.1622, allocations: 180.3 kB / 483.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.112e-05/0.1622, allocations: 101 kB / 483.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.216e-05/0.1623, allocations: 184.2 kB / 483.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.1624, allocations: 105 kB / 484 MB, free: 1.039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.866e-05/0.1624, allocations: 79.28 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1624, allocations: 0 / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005329/0.1629, allocations: 124 kB / 484.2 MB, free: 0.8398 MB / 350.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.00117/0.1641, allocations: 1.052 MB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.36e-05/0.1642, allocations: 0 / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1642, allocations: 0 / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.062e-06/0.1642, allocations: 0 / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004548/0.1647, allocations: 0.5301 MB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000424/0.1651, allocations: 235.6 kB / 486 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.1654, allocations: 0.6692 MB / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.584e-06/0.1654, allocations: 0 / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.47e-05/0.1654, allocations: 7.438 kB / 486.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1654, allocations: 4 kB / 486.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/0.183, allocations: 3.73 MB / 490.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002167/0.1833, allocations: 230.2 kB / 490.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.067, allocations: 3.938 kB / 490.7 MB, free: 10.36 MB / 366.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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches