Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001723/0.001723, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002157/0.002157, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2381/0.2381, allocations: 46.95 MB / 360.9 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003168/0.003168, allocations: 63.89 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3979, allocations: 66.03 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001764/0.3997, allocations: 496.1 kB / 0.561 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003618/0.4033, allocations: 2.167 MB / 0.5632 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.839e-06/0.4033, allocations: 0 / 0.5632 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.128e-06/0.4033, allocations: 0 / 0.5632 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.533e-06/0.4033, allocations: 0 / 0.5632 GB, free: 1.582 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.002404/0.4057, allocations: 0.6436 MB / 0.5638 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.285e-05/0.4058, allocations: 8 kB / 0.5638 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.69e-05/0.4058, allocations: 11.92 kB / 0.5638 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.406, allocations: 19.92 kB / 0.5638 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.403e-05/0.406, allocations: 4 kB / 0.5638 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.919e-06/0.406, allocations: 0 / 0.5638 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.4071, allocations: 0.6633 MB / 0.5645 GB, free: 244 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.4071, allocations: 0 / 0.5645 GB, free: 244 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.394e-05/0.4071, allocations: 4 kB / 0.5645 GB, free: 240 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006585/0.4078, allocations: 447.1 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.747e-06/0.4078, allocations: 8 kB / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4078, allocations: 0 / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.4078, allocations: 0 / 0.5649 GB, free: 15.79 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.0004122/0.4082, allocations: 355.3 kB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.4083, allocations: 8.031 kB / 0.5653 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.731e-05/0.4083, allocations: 106 kB / 0.5654 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.099e-05/0.4084, allocations: 80.22 kB / 0.5654 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.4086, allocations: 181.8 kB / 0.5656 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.795e-05/0.4086, allocations: 150.9 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-05/0.4087, allocations: 158.5 kB / 0.5659 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.073e-05/0.4088, allocations: 108.9 kB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.454e-05/0.4088, allocations: 79.28 kB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.919e-05/0.4089, allocations: 150.6 kB / 0.5662 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.085e-05/0.409, allocations: 154.6 kB / 0.5664 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.537e-05/0.4091, allocations: 150.6 kB / 0.5665 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003005/0.4094, allocations: 413 kB / 0.5669 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.833e-05/0.4095, allocations: 177 kB / 0.5671 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.78e-05/0.4095, allocations: 80.14 kB / 0.5672 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.503e-05/0.4095, allocations: 75.28 kB / 0.5672 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.705e-05/0.4096, allocations: 139.5 kB / 0.5674 GB, free: 13.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.4096, allocations: 0 / 0.5674 GB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.844e-05/0.4097, allocations: 33.69 kB / 0.5674 GB, free: 13.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.325e-05/0.4098, allocations: 152.4 kB / 0.5675 GB, free: 12.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.416e-05/0.4099, allocations: 93.86 kB / 0.5676 GB, free: 12.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.4099, allocations: 25.7 kB / 0.5677 GB, free: 12.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.148e-05/0.4099, allocations: 80.14 kB / 0.5677 GB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-06/0.4099, allocations: 0 / 0.5677 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.41, allocations: 17.66 kB / 0.5678 GB, free: 12.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4101, allocations: 314.8 kB / 0.5681 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.9e-06/0.4101, allocations: 0 / 0.5681 GB, free: 12.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.585e-05/0.4101, allocations: 29.7 kB / 0.5681 GB, free: 12.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.687e-05/0.4102, allocations: 75.28 kB / 0.5682 GB, free: 12.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.101e-05/0.4102, allocations: 79.31 kB / 0.5682 GB, free: 12.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.414e-05/0.4103, allocations: 41.69 kB / 0.5683 GB, free: 12.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/0.4103, allocations: 87.22 kB / 0.5684 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.204e-05/0.4104, allocations: 83.22 kB / 0.5684 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.535e-05/0.4105, allocations: 150.6 kB / 0.5686 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.416e-05/0.4105, allocations: 75.28 kB / 0.5686 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.858e-05/0.4106, allocations: 158.5 kB / 0.5688 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.704e-05/0.4106, allocations: 75.28 kB / 0.5689 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.4107, allocations: 87.25 kB / 0.569 GB, free: 11.42 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.0001455/0.4108, allocations: 264.4 kB / 0.5692 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.745e-05/0.4109, allocations: 112.9 kB / 0.5693 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.854e-05/0.4109, allocations: 107.8 kB / 0.5694 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.944e-05/0.411, allocations: 180.2 kB / 0.5696 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-05/0.4111, allocations: 184.2 kB / 0.5698 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.99e-05/0.4112, allocations: 184.2 kB / 0.5699 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.4114, allocations: 376.2 kB / 0.5703 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.452e-05/0.4115, allocations: 105 kB / 0.5704 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.529e-05/0.4115, allocations: 108.9 kB / 0.5705 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.638e-05/0.4116, allocations: 180.3 kB / 0.5707 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.487e-05/0.4117, allocations: 180.2 kB / 0.5708 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.029e-05/0.4118, allocations: 184.3 kB / 0.571 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-05/0.4119, allocations: 184.2 kB / 0.5712 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.412, allocations: 303.8 kB / 0.5715 GB, free: 8.656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.252e-05/0.4121, allocations: 112.9 kB / 0.5716 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.4122, allocations: 180.3 kB / 0.5718 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.4124, allocations: 101 kB / 0.5719 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/0.4124, allocations: 188.2 kB / 0.572 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.4125, allocations: 101 kB / 0.5721 GB, free: 7.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.4125, allocations: 75.28 kB / 0.5722 GB, free: 7.879 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4125, allocations: 0 / 0.5722 GB, free: 7.879 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005912/0.4131, allocations: 143.6 kB / 0.5723 GB, free: 7.738 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.00126/0.4144, allocations: 1.047 MB / 0.5734 GB, free: 6.668 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.761e-05/0.4144, allocations: 3.984 kB / 0.5734 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4144, allocations: 0 / 0.5734 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.4144, allocations: 0 / 0.5734 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.4148, allocations: 463.6 kB / 0.5738 GB, free: 6.207 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004602/0.4153, allocations: 250.1 kB / 0.5741 GB, free: 5.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.935e-05/0.4153, allocations: 51.36 kB / 0.5741 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.702e-06/0.4153, allocations: 0 / 0.5741 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.93e-05/0.4153, allocations: 11.44 kB / 0.5741 GB, free: 5.84 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4153, allocations: 0 / 0.5741 GB, free: 5.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.4497, allocations: 4.725 MB / 0.5787 GB, free: 1.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.49, allocations: 0 / 0.5787 GB, free: 1.246 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestNonlinear_res.mat","/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_4.1.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.401049900974613]