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.0008852/0.0008852, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001531/0.001531, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8767/0.8767, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.235/0.235, allocations: 32.78 MB / 293.5 MB, free: 1.227 MB / 266.7 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: Performance of FrontEnd - loaded program: time 3.346e-06/3.346e-06, allocations: 0 / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.626e-05/2.961e-05, allocations: 4.672 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001212/0.001241, allocations: 0.4892 MB / 440.1 MB, free: 3.789 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002185/0.003427, allocations: 2.171 MB / 442.2 MB, free: 1.598 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.439e-06/0.003431, allocations: 0 / 442.2 MB, free: 1.598 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.749e-06/0.003436, allocations: 0 / 442.2 MB, free: 1.598 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.593e-06/0.003438, allocations: 0 / 442.2 MB, free: 1.598 MB / 410.7 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.001418/0.004856, allocations: 0.643 MB / 442.9 MB, free: 0.957 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 3.745e-05/0.004893, allocations: 12 kB / 442.9 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.683e-05/0.00492, allocations: 3.984 kB / 442.9 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.005047, allocations: 19.92 kB / 442.9 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.297e-05/0.00508, allocations: 4 kB / 442.9 MB, free: 0.918 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.88e-06/0.005085, allocations: 0 / 442.9 MB, free: 0.918 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006604/0.005745, allocations: 0.6423 MB / 443.5 MB, free: 284 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.202e-06/0.005751, allocations: 4 kB / 443.6 MB, free: 280 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.431e-05/0.005766, allocations: 0 / 443.6 MB, free: 280 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1598/0.1656, allocations: 0.5529 MB / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1656, allocations: 0 / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1656, allocations: 1.531 kB / 444.1 MB, free: 43.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1656, allocations: 0 / 444.1 MB, free: 43.98 MB / 410.7 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.0002237/0.1658, allocations: 356.8 kB / 444.5 MB, free: 43.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1659, allocations: 8.969 kB / 444.5 MB, free: 43.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.659e-05/0.1659, allocations: 109.3 kB / 444.6 MB, free: 43.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.1659, allocations: 76.97 kB / 444.6 MB, free: 43.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.63e-05/0.166, allocations: 180.7 kB / 444.8 MB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.166, allocations: 154.8 kB / 445 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.166, allocations: 155.9 kB / 445.1 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.022e-05/0.166, allocations: 101.7 kB / 445.2 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.166, allocations: 80.66 kB / 445.3 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.166, allocations: 155 kB / 445.5 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1661, allocations: 150.6 kB / 445.6 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.327e-05/0.1661, allocations: 154.1 kB / 445.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001059/0.1662, allocations: 416.6 kB / 446.2 MB, free: 41.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.416e-05/0.1662, allocations: 169.3 kB / 446.3 MB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.197e-05/0.1662, allocations: 83.67 kB / 446.4 MB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.1662, allocations: 77.25 kB / 446.5 MB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1663, allocations: 135.7 kB / 446.6 MB, free: 41.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 4.61e-07/0.1663, allocations: 3 kB / 446.6 MB, free: 41.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 4.733e-05/0.1663, allocations: 32.23 kB / 446.6 MB, free: 41.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.1663, allocations: 158.4 kB / 446.8 MB, free: 41.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.526e-06/0.1663, allocations: 93.11 kB / 446.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-06/0.1663, allocations: 25.7 kB / 446.9 MB, free: 41.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-06/0.1664, allocations: 82.7 kB / 447 MB, free: 41.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-06/0.1664, allocations: 0 / 447 MB, free: 41.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/0.1664, allocations: 15.53 kB / 447 MB, free: 41.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.178e-05/0.1664, allocations: 314.7 kB / 447.3 MB, free: 40.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.948e-06/0.1664, allocations: 0 / 447.3 MB, free: 40.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.96e-05/0.1664, allocations: 31.45 kB / 447.4 MB, free: 40.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.596e-06/0.1664, allocations: 80.48 kB / 447.4 MB, free: 40.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1664, allocations: 77.41 kB / 447.5 MB, free: 40.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.516e-05/0.1665, allocations: 30.36 kB / 447.5 MB, free: 40.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.1665, allocations: 82.81 kB / 447.6 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1665, allocations: 88.53 kB / 447.7 MB, free: 40.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.1665, allocations: 158 kB / 447.9 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.919e-06/0.1665, allocations: 77.59 kB / 447.9 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1665, allocations: 157.6 kB / 448.1 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.278e-05/0.1665, allocations: 75.28 kB / 448.2 MB, free: 39.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.1665, allocations: 82.06 kB / 448.2 MB, free: 39.82 MB / 410.7 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 4.002e-05/0.1666, allocations: 271.5 kB / 448.5 MB, free: 39.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.1666, allocations: 104.5 kB / 448.6 MB, free: 39.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.264e-05/0.1666, allocations: 107.5 kB / 448.7 MB, free: 39.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.1666, allocations: 181.5 kB / 448.9 MB, free: 39.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.1666, allocations: 182.7 kB / 449.1 MB, free: 38.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.1667, allocations: 182.7 kB / 449.2 MB, free: 38.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.857e-05/0.1667, allocations: 375.2 kB / 449.6 MB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.1667, allocations: 104.8 kB / 449.7 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.452e-06/0.1667, allocations: 105.4 kB / 449.8 MB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/0.1667, allocations: 187 kB / 450 MB, free: 38.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.1668, allocations: 176.3 kB / 450.2 MB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.028e-05/0.1668, allocations: 186.9 kB / 450.4 MB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/0.1668, allocations: 183.5 kB / 450.5 MB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.131e-05/0.1668, allocations: 306.9 kB / 450.8 MB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-06/0.1668, allocations: 102.3 kB / 450.9 MB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.1668, allocations: 188.3 kB / 451.1 MB, free: 36.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.024e-05/0.1669, allocations: 108 kB / 451.2 MB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.1669, allocations: 180.1 kB / 451.4 MB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.1669, allocations: 106.5 kB / 451.5 MB, free: 36.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.957e-06/0.1669, allocations: 78.91 kB / 451.6 MB, free: 36.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1669, allocations: 0 / 451.6 MB, free: 36.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002845/0.1672, allocations: 141.3 kB / 451.7 MB, free: 36.38 MB / 410.7 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.0005767/0.1678, allocations: 1.068 MB / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.139e-05/0.1678, allocations: 4.344 kB / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1678, allocations: 0 / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.72e-07/0.1678, allocations: 2.25 kB / 452.8 MB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001406/0.168, allocations: 470.6 kB / 453.3 MB, free: 35.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002285/0.1682, allocations: 238.2 kB / 453.5 MB, free: 34.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.827e-05/0.1682, allocations: 51.36 kB / 453.5 MB, free: 34.81 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.819e-06/0.1682, allocations: 2.297 kB / 453.5 MB, free: 34.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.117e-05/0.1682, allocations: 11.22 kB / 453.6 MB, free: 34.8 MB / 410.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1682, allocations: 4 kB / 453.6 MB, free: 34.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01572/0.1839, allocations: 4.87 MB / 458.4 MB, free: 33.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.966/7.15, allocations: 21.38 kB / 458.4 MB, free: 33.63 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/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: 9.016953704878688]