Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 76.36 kB / 20.67 MB, free: 3.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 156.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8898/0.8898, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2639/0.2639, allocations: 34.24 MB / 294.8 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 442.1 MB, free: 1.598 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.247e-05, allocations: 2.281 kB / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001164/0.001187, allocations: 0.4956 MB / 442.6 MB, free: 1.105 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2123/0.2135, allocations: 2.175 MB / 444.8 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.745e-06/0.2135, allocations: 0 / 444.8 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 6.663e-06/0.2135, allocations: 0 / 444.8 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.024e-06/0.2135, allocations: 1.812 kB / 444.8 MB, free: 43.1 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.001844/0.2153, allocations: 0.6332 MB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.65e-05/0.2154, allocations: 9.781 kB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.342e-05/0.2154, allocations: 2.656 kB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001772/0.2156, allocations: 19.5 kB / 445.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.436e-05/0.2157, allocations: 13.23 kB / 445.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.2157, allocations: 0 / 445.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007782/0.2164, allocations: 0.6311 MB / 446.1 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-06/0.2165, allocations: 3.984 kB / 446.1 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.2165, allocations: 3 kB / 446.1 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005337/0.217, allocations: 0.55 MB / 446.7 MB, free: 42.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.217, allocations: 3.938 kB / 446.7 MB, free: 42.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.217, allocations: 1.75 kB / 446.7 MB, free: 42.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.217, allocations: 3.938 kB / 446.7 MB, free: 42.82 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.0002783/0.2173, allocations: 358.6 kB / 447 MB, free: 42.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.2173, allocations: 8.719 kB / 447 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.738e-05/0.2174, allocations: 109.7 kB / 447.1 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.467e-05/0.2174, allocations: 77.53 kB / 447.2 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.431e-05/0.2175, allocations: 184.2 kB / 447.4 MB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.2175, allocations: 150.9 kB / 447.5 MB, free: 41.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.2175, allocations: 151.6 kB / 447.7 MB, free: 41.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.708e-05/0.2176, allocations: 111.1 kB / 447.8 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2176, allocations: 78.62 kB / 447.9 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.2176, allocations: 150.6 kB / 448 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.2176, allocations: 157.4 kB / 448.2 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.704e-05/0.2176, allocations: 152.2 kB / 448.3 MB, free: 41.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.2178, allocations: 419.1 kB / 448.7 MB, free: 40.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.565e-05/0.2178, allocations: 165.1 kB / 448.9 MB, free: 40.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.619e-05/0.2178, allocations: 83.2 kB / 449 MB, free: 40.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.2179, allocations: 75.28 kB / 449.1 MB, free: 40.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.2179, allocations: 142.3 kB / 449.2 MB, free: 40.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.343e-06/0.2179, allocations: 0.75 kB / 449.2 MB, free: 40.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 5.983e-05/0.218, allocations: 33.64 kB / 449.2 MB, free: 40.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.218, allocations: 162.5 kB / 449.4 MB, free: 40.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.205e-05/0.218, allocations: 89.86 kB / 449.5 MB, free: 39.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-06/0.218, allocations: 25.7 kB / 449.5 MB, free: 39.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.271e-05/0.218, allocations: 80.14 kB / 449.6 MB, free: 39.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-06/0.218, allocations: 0 / 449.6 MB, free: 39.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.2181, allocations: 15.03 kB / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.2181, allocations: 310.8 kB / 449.9 MB, free: 39.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.901e-06/0.2181, allocations: 3.094 kB / 449.9 MB, free: 39.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.058e-05/0.2181, allocations: 26.58 kB / 449.9 MB, free: 39.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.606e-05/0.2182, allocations: 79.88 kB / 450 MB, free: 39.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.2182, allocations: 86.16 kB / 450.1 MB, free: 39.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.06e-05/0.2182, allocations: 28.67 kB / 450.1 MB, free: 39.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.2182, allocations: 82.19 kB / 450.2 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.2182, allocations: 82.25 kB / 450.3 MB, free: 39.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.34e-05/0.2183, allocations: 158.5 kB / 450.4 MB, free: 38.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.909e-06/0.2183, allocations: 78.22 kB / 450.5 MB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/0.2183, allocations: 161.7 kB / 450.7 MB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.584e-05/0.2183, allocations: 78.27 kB / 450.7 MB, free: 38.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.2184, allocations: 75.28 kB / 450.8 MB, free: 38.57 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 6.516e-05/0.2184, allocations: 263 kB / 451.1 MB, free: 38.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.2184, allocations: 115.9 kB / 451.2 MB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.2185, allocations: 111.2 kB / 451.3 MB, free: 38.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.2185, allocations: 182.8 kB / 451.5 MB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.021e-05/0.2185, allocations: 180.2 kB / 451.6 MB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/0.2185, allocations: 179 kB / 451.8 MB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.618e-05/0.2186, allocations: 378.3 kB / 452.2 MB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.909e-06/0.2186, allocations: 101 kB / 452.3 MB, free: 37.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.089e-05/0.2187, allocations: 107.7 kB / 452.4 MB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.949e-05/0.2187, allocations: 176.3 kB / 452.6 MB, free: 36.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.2187, allocations: 186.5 kB / 452.7 MB, free: 36.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.666e-05/0.2187, allocations: 180.2 kB / 452.9 MB, free: 36.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.096e-05/0.2187, allocations: 191.1 kB / 453.1 MB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.63e-05/0.2188, allocations: 302.1 kB / 453.4 MB, free: 35.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.475e-05/0.2188, allocations: 103.9 kB / 453.5 MB, free: 35.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.2189, allocations: 186.7 kB / 453.7 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.694e-05/0.2189, allocations: 114.8 kB / 453.8 MB, free: 35.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.2189, allocations: 182.8 kB / 454 MB, free: 35.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.2189, allocations: 103.7 kB / 454.1 MB, free: 35.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.5e-05/0.219, allocations: 75.28 kB / 454.2 MB, free: 35.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.219, allocations: 0 / 454.2 MB, free: 35.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000421/0.2194, allocations: 132.4 kB / 454.3 MB, free: 35.05 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.0009432/0.2203, allocations: 1.082 MB / 455.4 MB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 5.858e-05/0.2204, allocations: 0 / 455.4 MB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2204, allocations: 0 / 455.4 MB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.062e-06/0.2204, allocations: 2.469 kB / 455.4 MB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001741/0.2206, allocations: 454.4 kB / 455.8 MB, free: 33.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003221/0.2209, allocations: 246.7 kB / 456.1 MB, free: 33.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.097e-05/0.2209, allocations: 59.3 kB / 456.1 MB, free: 33.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.087e-06/0.2209, allocations: 2.875 kB / 456.1 MB, free: 33.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.271e-05/0.2209, allocations: 8.5 kB / 456.1 MB, free: 33.43 MB / 410.7 MB Notification: Performance of SimCode: time 6.42e-07/0.2209, allocations: 0 / 456.1 MB, free: 33.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.2424, allocations: 4.875 MB / 461 MB, free: 32.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.908/7.151, allocations: 2.969 kB / 461 MB, free: 32.23 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.089733469299972]