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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 215.7 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.98 MB / 206.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.2165/0.2165, allocations: 44.92 MB / 358.8 MB, free: 6.242 MB / 286.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002888/0.002888, allocations: 65.61 kB / 0.4931 GB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3865/0.3894, allocations: 65.46 MB / 0.557 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001536/0.3909, allocations: 499.7 kB / 0.5575 GB, free: 7.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.3945, allocations: 2.327 MB / 0.5598 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.739e-06/0.3945, allocations: 0 / 0.5598 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.617e-06/0.3945, allocations: 0 / 0.5598 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.373e-06/0.3945, allocations: 4 kB / 0.5598 GB, free: 4.918 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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 4.1.0+maint.om/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 4.1.0+maint.om/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 4.1.0+maint.om/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.002142/0.3966, allocations: 0.629 MB / 0.5604 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.969e-05/0.3967, allocations: 4 kB / 0.5604 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.236e-05/0.3967, allocations: 0 / 0.5604 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.3968, allocations: 27.91 kB / 0.5604 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.481e-05/0.3968, allocations: 4 kB / 0.5604 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.648e-06/0.3968, allocations: 0 / 0.5604 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.3979, allocations: 0.6788 MB / 0.5611 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.52e-06/0.3979, allocations: 0 / 0.5611 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.12e-05/0.398, allocations: 4 kB / 0.5611 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006499/0.3986, allocations: 443.1 kB / 0.5615 GB, free: 3.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3986, allocations: 0 / 0.5615 GB, free: 3.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3986, allocations: 0 / 0.5615 GB, free: 3.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3986, allocations: 3.938 kB / 0.5615 GB, free: 3.137 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.000424/0.399, allocations: 355.3 kB / 0.5618 GB, free: 2.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3991, allocations: 12.03 kB / 0.5619 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.001e-05/0.3992, allocations: 110 kB / 0.562 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.286e-05/0.3992, allocations: 76.22 kB / 0.562 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.3994, allocations: 185.8 kB / 0.5622 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.821e-05/0.3994, allocations: 150.9 kB / 0.5624 GB, free: 2.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.384e-05/0.3995, allocations: 154.5 kB / 0.5625 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.911e-05/0.3996, allocations: 112.9 kB / 0.5626 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.572e-05/0.3996, allocations: 75.28 kB / 0.5627 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-05/0.3997, allocations: 150.6 kB / 0.5628 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-05/0.3998, allocations: 154.6 kB / 0.563 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.794e-05/0.3998, allocations: 154.6 kB / 0.5631 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003095/0.4001, allocations: 413 kB / 0.5635 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.973e-05/0.4002, allocations: 173 kB / 0.5637 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.087e-05/0.4003, allocations: 88.14 kB / 0.5638 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.4003, allocations: 75.28 kB / 0.5638 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.985e-05/0.4004, allocations: 139.5 kB / 0.564 GB, free: 468 kB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.91e-07/0.4004, allocations: 0 / 0.564 GB, free: 468 kB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.691e-05/0.4005, allocations: 29.64 kB / 0.564 GB, free: 432 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.4006, allocations: 156.4 kB / 0.5641 GB, free: 256 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.884e-05/0.4007, allocations: 89.86 kB / 0.5642 GB, free: 156 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.4007, allocations: 25.7 kB / 0.5643 GB, free: 124 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.974e-05/0.4008, allocations: 80.14 kB / 0.5643 GB, free: 40 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.294e-06/0.4008, allocations: 0 / 0.5643 GB, free: 40 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.4008, allocations: 17.72 kB / 0.5643 GB, free: 16 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002454/0.401, allocations: 318.8 kB / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.59e-06/0.401, allocations: 0 / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.03e-05/0.4011, allocations: 7.984 kB / 0.5647 GB, free: 15.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.171e-05/0.4011, allocations: 79.28 kB / 0.5647 GB, free: 15.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-05/0.4012, allocations: 75.28 kB / 0.5648 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.343e-05/0.4012, allocations: 33.7 kB / 0.5648 GB, free: 15.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.725e-05/0.4013, allocations: 79.28 kB / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.032e-05/0.4013, allocations: 87.27 kB / 0.565 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.345e-05/0.4014, allocations: 154.6 kB / 0.5651 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.416e-05/0.4014, allocations: 75.28 kB / 0.5652 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.246e-05/0.4015, allocations: 158.5 kB / 0.5654 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.176e-05/0.4016, allocations: 75.28 kB / 0.5654 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.756e-05/0.4016, allocations: 91.27 kB / 0.5655 GB, free: 14.79 MB / 414.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.0001426/0.4018, allocations: 260.4 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.22e-05/0.4018, allocations: 108.9 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.276e-05/0.4019, allocations: 107.8 kB / 0.566 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.948e-05/0.402, allocations: 184.2 kB / 0.5662 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.455e-05/0.4021, allocations: 180.3 kB / 0.5663 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.194e-05/0.4022, allocations: 192.2 kB / 0.5665 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.4024, allocations: 368.2 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.818e-05/0.4025, allocations: 105 kB / 0.567 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.305e-05/0.4025, allocations: 108.9 kB / 0.5671 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.652e-05/0.4026, allocations: 176.3 kB / 0.5672 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-05/0.4027, allocations: 184.2 kB / 0.5674 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.383e-05/0.4028, allocations: 184.2 kB / 0.5676 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.292e-05/0.4029, allocations: 184.2 kB / 0.5678 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.4031, allocations: 307.8 kB / 0.5681 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.917e-05/0.4031, allocations: 108.9 kB / 0.5682 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.241e-05/0.4032, allocations: 184.3 kB / 0.5683 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.72e-05/0.4033, allocations: 108.9 kB / 0.5684 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.676e-05/0.4034, allocations: 180.2 kB / 0.5686 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.85e-05/0.4034, allocations: 105 kB / 0.5687 GB, free: 11.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.828e-05/0.4035, allocations: 79.28 kB / 0.5688 GB, free: 11.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4035, allocations: 0 / 0.5688 GB, free: 11.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005749/0.4041, allocations: 139.6 kB / 0.5689 GB, free: 11.11 MB / 414.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.001182/0.4052, allocations: 1.037 MB / 0.5699 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.448e-05/0.4053, allocations: 8 kB / 0.5699 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.4053, allocations: 0 / 0.5699 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.202e-06/0.4053, allocations: 0 / 0.5699 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.4057, allocations: 466 kB / 0.5704 GB, free: 9.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004574/0.4062, allocations: 238.1 kB / 0.5706 GB, free: 9.305 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.4065, allocations: 0.6729 MB / 0.5713 GB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.482e-06/0.4065, allocations: 0 / 0.5713 GB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.502e-05/0.4065, allocations: 11.44 kB / 0.5713 GB, free: 8.594 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4065, allocations: 0 / 0.5713 GB, free: 8.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.4371, allocations: 4.305 MB / 0.5755 GB, free: 4.418 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.57, allocations: 3.938 kB / 0.5755 GB, free: 4.414 MB / 414.1 MB " [Timeout remaining time 648] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.39587930199923]