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.001637/0.001637, 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 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.001834/0.001834, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.52/1.52, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2577/0.2577, allocations: 46.92 MB / 357.1 MB, free: 10.32 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.002004/0.002004, allocations: 71.88 kB / 0.4909 GB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1344, allocations: 65.98 MB / 0.5553 GB, free: 5.887 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001586/0.136, allocations: 0.5009 MB / 0.5558 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003432/0.1394, allocations: 2.295 MB / 0.5581 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.278e-06/0.1394, allocations: 0 / 0.5581 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 7.835e-06/0.1394, allocations: 0 / 0.5581 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.212e-06/0.1394, allocations: 0 / 0.5581 GB, free: 3.07 MB / 414.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.002088/0.1415, allocations: 0.6344 MB / 0.5587 GB, free: 2.438 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 3.83e-05/0.1415, allocations: 4 kB / 0.5587 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.983e-05/0.1416, allocations: 0 / 0.5587 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.1417, allocations: 23.91 kB / 0.5587 GB, free: 2.41 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.8e-05/0.1417, allocations: 4 kB / 0.5587 GB, free: 2.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.488e-06/0.1417, allocations: 0 / 0.5587 GB, free: 2.406 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.1428, allocations: 0.6671 MB / 0.5594 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-06/0.1428, allocations: 0 / 0.5594 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2e-05/0.1429, allocations: 8 kB / 0.5594 GB, free: 1.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00065/0.1435, allocations: 455 kB / 0.5598 GB, free: 1.285 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1435, allocations: 0 / 0.5598 GB, free: 1.285 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1435, allocations: 0 / 0.5598 GB, free: 1.285 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1435, allocations: 3.938 kB / 0.5598 GB, free: 1.281 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.0005111/0.144, allocations: 428.5 kB / 0.5602 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1441, allocations: 8.031 kB / 0.5602 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.389e-05/0.1441, allocations: 114 kB / 0.5604 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.1443, allocations: 84.22 kB / 0.5604 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.1444, allocations: 235.7 kB / 0.5607 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.916e-05/0.1445, allocations: 150.9 kB / 0.5608 GB, free: 184 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.562e-05/0.1446, allocations: 154.5 kB / 0.5609 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.1447, allocations: 105 kB / 0.561 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.829e-05/0.1447, allocations: 79.27 kB / 0.5611 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.221e-05/0.1448, allocations: 158.6 kB / 0.5613 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.495e-05/0.1448, allocations: 154.5 kB / 0.5614 GB, free: 15.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.903e-05/0.1449, allocations: 158.6 kB / 0.5616 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003322/0.1453, allocations: 441.9 kB / 0.562 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.1454, allocations: 173.1 kB / 0.5622 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.968e-05/0.1454, allocations: 88.08 kB / 0.5622 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.1455, allocations: 79.28 kB / 0.5623 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.023e-05/0.1455, allocations: 135.5 kB / 0.5624 GB, free: 14.4 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.1455, allocations: 0 / 0.5624 GB, free: 14.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 9.521e-05/0.1456, allocations: 25.7 kB / 0.5625 GB, free: 14.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.906e-05/0.1457, allocations: 160.4 kB / 0.5626 GB, free: 14.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.464e-05/0.1458, allocations: 89.86 kB / 0.5627 GB, free: 14.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.1458, allocations: 25.7 kB / 0.5627 GB, free: 14.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.323e-05/0.1458, allocations: 80.14 kB / 0.5628 GB, free: 13.98 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.773e-06/0.1458, allocations: 0 / 0.5628 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.1459, allocations: 17.7 kB / 0.5628 GB, free: 13.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.146, allocations: 310.8 kB / 0.5631 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-06/0.146, allocations: 4 kB / 0.5631 GB, free: 13.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.331e-05/0.146, allocations: 8 kB / 0.5631 GB, free: 13.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.632e-05/0.1461, allocations: 79.22 kB / 0.5632 GB, free: 13.55 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.589e-05/0.1461, allocations: 75.28 kB / 0.5633 GB, free: 13.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.798e-05/0.1462, allocations: 33.64 kB / 0.5633 GB, free: 13.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.1462, allocations: 79.28 kB / 0.5634 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.303e-05/0.1462, allocations: 75.28 kB / 0.5635 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.069e-05/0.1463, allocations: 162.5 kB / 0.5636 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.316e-05/0.1463, allocations: 79.31 kB / 0.5637 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.59e-05/0.1464, allocations: 154.5 kB / 0.5638 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.62e-05/0.1465, allocations: 75.28 kB / 0.5639 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.1465, allocations: 83.28 kB / 0.564 GB, free: 12.74 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.0001399/0.1467, allocations: 258.6 kB / 0.5642 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.42e-05/0.1468, allocations: 116.9 kB / 0.5644 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.584e-05/0.1468, allocations: 115.9 kB / 0.5645 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.933e-05/0.1469, allocations: 180.2 kB / 0.5646 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.377e-05/0.147, allocations: 180.3 kB / 0.5648 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.182e-05/0.147, allocations: 184.3 kB / 0.565 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.1473, allocations: 409 kB / 0.5654 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-05/0.1473, allocations: 105 kB / 0.5655 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.877e-05/0.1474, allocations: 108.9 kB / 0.5656 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.405e-05/0.1475, allocations: 176.3 kB / 0.5657 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.365e-05/0.1475, allocations: 180.3 kB / 0.5659 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.902e-05/0.1476, allocations: 184.2 kB / 0.5661 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.656e-05/0.1477, allocations: 184.2 kB / 0.5663 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001569/0.1478, allocations: 311.7 kB / 0.5666 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.701e-05/0.1479, allocations: 182.1 kB / 0.5667 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.367e-05/0.148, allocations: 180.2 kB / 0.5669 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.287e-05/0.1481, allocations: 105 kB / 0.567 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.1482, allocations: 184.2 kB / 0.5672 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.807e-05/0.1482, allocations: 101 kB / 0.5673 GB, free: 9.152 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.1483, allocations: 75.28 kB / 0.5674 GB, free: 9.078 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1483, allocations: 0 / 0.5674 GB, free: 9.078 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005071/0.1488, allocations: 143.6 kB / 0.5675 GB, free: 8.938 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.001206/0.15, allocations: 1.043 MB / 0.5685 GB, free: 7.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.256e-05/0.15, allocations: 4 kB / 0.5685 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.15, allocations: 0 / 0.5685 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-06/0.15, allocations: 0 / 0.5685 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.1504, allocations: 469.8 kB / 0.569 GB, free: 7.406 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004473/0.1509, allocations: 245.6 kB / 0.5692 GB, free: 7.125 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.1512, allocations: 0.6729 MB / 0.5699 GB, free: 6.426 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.831e-06/0.1512, allocations: 0 / 0.5699 GB, free: 6.426 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.351e-05/0.1512, allocations: 11.44 kB / 0.5699 GB, free: 6.414 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1512, allocations: 0 / 0.5699 GB, free: 6.414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02933/0.1805, allocations: 4.177 MB / 0.5739 GB, free: 2.301 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.249/8.43, allocations: 7.812 kB / 0.5739 GB, free: 2.297 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.446260469034314]