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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001682/0.001682, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001969/0.001969, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 230.4 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2287/0.2287, allocations: 46.92 MB / 357 MB, free: 10.22 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002345/0.002345, allocations: 79.88 kB / 0.4909 GB, free: 7.785 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.147, allocations: 66.05 MB / 0.5554 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001664/0.1487, allocations: 489 kB / 0.5559 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003797/0.1525, allocations: 2.306 MB / 0.5582 GB, free: 2.801 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.009e-05/0.1525, allocations: 0 / 0.5582 GB, free: 2.801 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.168e-06/0.1525, allocations: 0 / 0.5582 GB, free: 2.801 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.433e-06/0.1525, allocations: 4 kB / 0.5582 GB, free: 2.797 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-88: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:90:5-160: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:162:5-239: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:241:5-319: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.002254/0.1547, allocations: 0.6349 MB / 0.5588 GB, free: 2.168 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.389e-05/0.1548, allocations: 4 kB / 0.5588 GB, free: 2.164 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.346e-05/0.1548, allocations: 4 kB / 0.5588 GB, free: 2.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.155, allocations: 23.91 kB / 0.5588 GB, free: 2.137 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.947e-05/0.155, allocations: 4 kB / 0.5588 GB, free: 2.133 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-06/0.155, allocations: 0 / 0.5588 GB, free: 2.133 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.1561, allocations: 0.6633 MB / 0.5595 GB, free: 1.469 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.017e-06/0.1561, allocations: 0 / 0.5595 GB, free: 1.469 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.2e-05/0.1562, allocations: 8 kB / 0.5595 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006995/0.1569, allocations: 455 kB / 0.5599 GB, free: 1.016 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1569, allocations: 0 / 0.5599 GB, free: 1.016 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1569, allocations: 0 / 0.5599 GB, free: 1.016 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1569, allocations: 0 / 0.5599 GB, free: 1.016 MB / 414.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.0005242/0.1574, allocations: 432.5 kB / 0.5603 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1574, allocations: 12.03 kB / 0.5603 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.495e-05/0.1575, allocations: 106 kB / 0.5604 GB, free: 424 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.733e-05/0.1576, allocations: 76.22 kB / 0.5605 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.1577, allocations: 239.7 kB / 0.5607 GB, free: 68 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.726e-05/0.1578, allocations: 158.9 kB / 0.5609 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-05/0.1579, allocations: 158.5 kB / 0.561 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.784e-05/0.1579, allocations: 109 kB / 0.5611 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.158, allocations: 75.28 kB / 0.5612 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.299e-05/0.158, allocations: 150.6 kB / 0.5614 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-05/0.1581, allocations: 154.6 kB / 0.5615 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.984e-05/0.1582, allocations: 154.6 kB / 0.5617 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002984/0.1585, allocations: 446 kB / 0.5621 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.406e-05/0.1586, allocations: 173 kB / 0.5622 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.246e-05/0.1586, allocations: 84.14 kB / 0.5623 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.1586, allocations: 79.22 kB / 0.5624 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.702e-05/0.1587, allocations: 143.5 kB / 0.5625 GB, free: 14.13 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.1587, allocations: 0 / 0.5625 GB, free: 14.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 7.907e-05/0.1588, allocations: 29.64 kB / 0.5626 GB, free: 14.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.1589, allocations: 152.4 kB / 0.5627 GB, free: 13.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.168e-05/0.1589, allocations: 89.86 kB / 0.5628 GB, free: 13.83 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.159, allocations: 25.7 kB / 0.5628 GB, free: 13.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.159, allocations: 88.08 kB / 0.5629 GB, free: 13.71 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-06/0.159, allocations: 0 / 0.5629 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.159, allocations: 17.72 kB / 0.5629 GB, free: 13.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1592, allocations: 314.8 kB / 0.5632 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.363e-06/0.1592, allocations: 0 / 0.5632 GB, free: 13.37 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.472e-05/0.1592, allocations: 3.984 kB / 0.5632 GB, free: 13.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.86e-05/0.1592, allocations: 83.28 kB / 0.5633 GB, free: 13.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.802e-05/0.1593, allocations: 75.28 kB / 0.5634 GB, free: 13.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.835e-05/0.1593, allocations: 29.64 kB / 0.5634 GB, free: 13.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.1594, allocations: 87.22 kB / 0.5635 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.341e-05/0.1594, allocations: 79.31 kB / 0.5636 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.651e-05/0.1595, allocations: 150.6 kB / 0.5637 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.373e-05/0.1595, allocations: 79.22 kB / 0.5638 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.469e-05/0.1596, allocations: 154.6 kB / 0.5639 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.714e-05/0.1597, allocations: 87.2 kB / 0.564 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.1597, allocations: 75.28 kB / 0.5641 GB, free: 12.47 MB / 430.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.0001384/0.1598, allocations: 264.4 kB / 0.5643 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.081e-05/0.1599, allocations: 104.9 kB / 0.5644 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.872e-05/0.16, allocations: 115.8 kB / 0.5646 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.787e-05/0.1601, allocations: 180.2 kB / 0.5647 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001046/0.1602, allocations: 188.2 kB / 0.5649 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.093e-05/0.1603, allocations: 180.3 kB / 0.5651 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.1605, allocations: 401.2 kB / 0.5655 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.6e-05/0.1606, allocations: 108.9 kB / 0.5656 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.94e-05/0.1606, allocations: 101 kB / 0.5657 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.807e-05/0.1607, allocations: 180.2 kB / 0.5658 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.669e-05/0.1608, allocations: 184.3 kB / 0.566 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.073e-05/0.1609, allocations: 180.3 kB / 0.5662 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.028e-05/0.161, allocations: 180.2 kB / 0.5664 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.1612, allocations: 315.6 kB / 0.5667 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.79e-05/0.1613, allocations: 178.1 kB / 0.5668 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.843e-05/0.1614, allocations: 184.3 kB / 0.567 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.046e-05/0.1615, allocations: 108.9 kB / 0.5671 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.587e-05/0.1616, allocations: 180.3 kB / 0.5673 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.1616, allocations: 104.9 kB / 0.5674 GB, free: 8.883 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.185e-05/0.1616, allocations: 75.28 kB / 0.5674 GB, free: 8.809 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1616, allocations: 0 / 0.5674 GB, free: 8.809 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005804/0.1622, allocations: 143.6 kB / 0.5676 GB, free: 8.668 MB / 430.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.001264/0.1635, allocations: 1.042 MB / 0.5686 GB, free: 7.598 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.625e-05/0.1635, allocations: 7.938 kB / 0.5686 GB, free: 7.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1635, allocations: 0 / 0.5686 GB, free: 7.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.1635, allocations: 0 / 0.5686 GB, free: 7.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.1639, allocations: 463.6 kB / 0.569 GB, free: 7.133 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004791/0.1644, allocations: 245.7 kB / 0.5693 GB, free: 6.852 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1647, allocations: 0.669 MB / 0.5699 GB, free: 6.156 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.1647, allocations: 4 kB / 0.5699 GB, free: 6.152 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.432e-05/0.1647, allocations: 7.438 kB / 0.5699 GB, free: 6.145 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1647, allocations: 0 / 0.5699 GB, free: 6.145 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.1928, allocations: 4.18 MB / 0.574 GB, free: 2.031 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.254/8.447, allocations: 11.94 kB / 0.574 GB, free: 2.02 MB / 430.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.514540293021128]