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.001359/0.001359, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001551/0.001551, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.2174/0.2174, allocations: 44.93 MB / 358.9 MB, free: 6.027 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.002077/0.002077, allocations: 70.55 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.299, allocations: 65.47 MB / 0.5569 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001545/0.3005, allocations: 497.3 kB / 0.5574 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003272/0.3038, allocations: 2.168 MB / 0.5595 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.318e-06/0.3038, allocations: 4 kB / 0.5595 GB, free: 4.855 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.707e-06/0.3038, allocations: 0 / 0.5595 GB, free: 4.855 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.193e-06/0.3038, allocations: 4 kB / 0.5595 GB, free: 4.852 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.002056/0.3059, allocations: 0.64 MB / 0.5602 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.3e-05/0.3059, allocations: 8 kB / 0.5602 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.829e-05/0.3059, allocations: 3.984 kB / 0.5602 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.306, allocations: 15.92 kB / 0.5602 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.217e-05/0.3061, allocations: 4 kB / 0.5602 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.079e-06/0.3061, allocations: 4 kB / 0.5602 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.3071, allocations: 0.6398 MB / 0.5608 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.58e-06/0.3071, allocations: 0 / 0.5608 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.3071, allocations: 3.984 kB / 0.5608 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00062/0.3078, allocations: 451 kB / 0.5613 GB, free: 3.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3078, allocations: 0 / 0.5613 GB, free: 3.098 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3078, allocations: 0 / 0.5613 GB, free: 3.098 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.3078, allocations: 0 / 0.5613 GB, free: 3.098 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.0004187/0.3082, allocations: 351.3 kB / 0.5616 GB, free: 2.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.3082, allocations: 16.03 kB / 0.5616 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.601e-05/0.3083, allocations: 106 kB / 0.5617 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.589e-05/0.3084, allocations: 80.2 kB / 0.5618 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.3085, allocations: 181.8 kB / 0.562 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.551e-05/0.3086, allocations: 154.9 kB / 0.5621 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-05/0.3086, allocations: 158.5 kB / 0.5623 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.3e-05/0.3087, allocations: 101 kB / 0.5624 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.489e-05/0.3087, allocations: 83.28 kB / 0.5624 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.774e-05/0.3088, allocations: 150.6 kB / 0.5626 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.512e-05/0.3089, allocations: 150.6 kB / 0.5627 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.664e-05/0.309, allocations: 158.5 kB / 0.5629 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003035/0.3093, allocations: 417 kB / 0.5633 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.3094, allocations: 181.1 kB / 0.5634 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.941e-05/0.3094, allocations: 80.14 kB / 0.5635 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.3095, allocations: 75.28 kB / 0.5636 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.12e-05/0.3095, allocations: 131.5 kB / 0.5637 GB, free: 432 kB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 9.21e-07/0.3095, allocations: 0 / 0.5637 GB, free: 432 kB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.465e-05/0.3096, allocations: 33.64 kB / 0.5638 GB, free: 392 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.951e-05/0.3097, allocations: 152.4 kB / 0.5639 GB, free: 220 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.982e-05/0.3097, allocations: 89.86 kB / 0.564 GB, free: 120 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.3098, allocations: 25.7 kB / 0.564 GB, free: 88 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.3098, allocations: 92.22 kB / 0.5641 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-06/0.3098, allocations: 0 / 0.5641 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.3099, allocations: 17.7 kB / 0.5641 GB, free: 15.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.31, allocations: 310.8 kB / 0.5644 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.739e-06/0.31, allocations: 0 / 0.5644 GB, free: 15.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.308e-05/0.31, allocations: 29.7 kB / 0.5644 GB, free: 15.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.432e-05/0.3101, allocations: 75.28 kB / 0.5645 GB, free: 15.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.261e-05/0.3101, allocations: 79.22 kB / 0.5646 GB, free: 15.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.758e-05/0.3102, allocations: 37.7 kB / 0.5646 GB, free: 15.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.883e-05/0.3102, allocations: 85.88 kB / 0.5647 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.319e-05/0.3103, allocations: 79.31 kB / 0.5648 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.207e-05/0.3103, allocations: 154.6 kB / 0.5649 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.493e-05/0.3104, allocations: 83.2 kB / 0.565 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-05/0.3105, allocations: 154.6 kB / 0.5652 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.355e-05/0.3105, allocations: 83.22 kB / 0.5652 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.3106, allocations: 79.33 kB / 0.5653 GB, free: 14.71 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.0001425/0.3107, allocations: 260.4 kB / 0.5656 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.466e-05/0.3108, allocations: 104.9 kB / 0.5657 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.067e-05/0.3108, allocations: 119.7 kB / 0.5658 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.822e-05/0.3109, allocations: 184.2 kB / 0.5659 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.488e-05/0.311, allocations: 184.2 kB / 0.5661 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-05/0.3111, allocations: 180.3 kB / 0.5663 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.3114, allocations: 372.2 kB / 0.5667 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.943e-05/0.3114, allocations: 108.9 kB / 0.5668 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.345e-05/0.3115, allocations: 105 kB / 0.5669 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-05/0.3115, allocations: 184.1 kB / 0.567 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.331e-05/0.3116, allocations: 176.3 kB / 0.5672 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.792e-05/0.3117, allocations: 180.3 kB / 0.5674 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-05/0.3118, allocations: 184.2 kB / 0.5675 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.3119, allocations: 307.7 kB / 0.5678 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.785e-05/0.312, allocations: 109 kB / 0.5679 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.421e-05/0.3121, allocations: 188.2 kB / 0.5681 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.659e-05/0.3122, allocations: 112.9 kB / 0.5682 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.114e-05/0.3123, allocations: 176.3 kB / 0.5684 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.385e-05/0.3123, allocations: 108.9 kB / 0.5685 GB, free: 11.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.425e-05/0.3124, allocations: 75.28 kB / 0.5686 GB, free: 11.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3124, allocations: 0 / 0.5686 GB, free: 11.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.3129, allocations: 139.6 kB / 0.5687 GB, free: 11.03 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.001101/0.314, allocations: 1.043 MB / 0.5697 GB, free: 9.969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.03e-05/0.314, allocations: 7.938 kB / 0.5697 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.314, allocations: 0 / 0.5697 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.193e-06/0.314, allocations: 0 / 0.5697 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/0.3144, allocations: 455.7 kB / 0.5702 GB, free: 9.512 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004384/0.3148, allocations: 242.1 kB / 0.5704 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.965e-05/0.3149, allocations: 55.36 kB / 0.5705 GB, free: 9.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.3149, allocations: 0 / 0.5705 GB, free: 9.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.384e-05/0.3149, allocations: 7.438 kB / 0.5705 GB, free: 9.152 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3149, allocations: 4 kB / 0.5705 GB, free: 9.148 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.3457, allocations: 4.713 MB / 0.5751 GB, free: 4.566 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.9, allocations: 6.906 kB / 0.5751 GB, free: 4.562 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.806606417056173]