Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.0008435/0.0008435, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.00408/0.00408, allocations: 157.8 kB / 24.7 MB, free: 8.891 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.9043/0.9043, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2744/0.2744, allocations: 34.26 MB / 295.7 MB, free: 0.6992 MB / 266.7 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: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 443.4 MB, free: 1.184 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.644e-05/2.794e-05, allocations: 2.281 kB / 443.4 MB, free: 1.18 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001138/0.001166, allocations: 489 kB / 443.9 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1738/0.175, allocations: 1.345 MB / 445.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.789e-05/0.175, allocations: 0 / 445.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.1751, allocations: 3.938 kB / 445.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.1753, allocations: 8.594 kB / 445.2 MB, free: 43.66 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1763, allocations: 272 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.091e-05/0.1764, allocations: 5.594 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.293e-05/0.1764, allocations: 0 / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.467e-05/0.1765, allocations: 2.844 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.05e-05/0.1765, allocations: 5.062 kB / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.627e-06/0.1765, allocations: 0 / 445.5 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001576/0.1781, allocations: 0.7185 MB / 446.2 MB, free: 43.58 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.878e-06/0.1781, allocations: 0 / 446.2 MB, free: 43.58 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.697e-05/0.1781, allocations: 0 / 446.2 MB, free: 43.58 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.1784, allocations: 216.2 kB / 446.5 MB, free: 43.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1784, allocations: 0 / 446.5 MB, free: 43.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1784, allocations: 0 / 446.5 MB, free: 43.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1784, allocations: 0.625 kB / 446.5 MB, free: 43.57 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002785/0.1787, allocations: 311.5 kB / 446.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1787, allocations: 9.719 kB / 446.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.1788, allocations: 2.125 kB / 446.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.953e-05/0.1788, allocations: 108.1 kB / 446.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1788, allocations: 384 / 446.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.1789, allocations: 6.656 kB / 446.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.114e-05/0.1789, allocations: 58.84 kB / 446.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1789, allocations: 192 / 446.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.1789, allocations: 4.125 kB / 446.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.179, allocations: 0 / 446.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.796e-05/0.179, allocations: 28.67 kB / 447 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.871e-05/0.1791, allocations: 106.4 kB / 447.1 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.256e-05/0.1791, allocations: 40.28 kB / 447.1 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.602e-05/0.1791, allocations: 37.03 kB / 447.2 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.815e-06/0.1791, allocations: 2.625 kB / 447.2 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.1791, allocations: 66.8 kB / 447.2 MB, free: 42.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.1791, allocations: 0 / 447.2 MB, free: 42.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001834/0.1793, allocations: 117.4 kB / 447.3 MB, free: 42.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1794, allocations: 86.69 kB / 447.4 MB, free: 42.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.96e-05/0.1794, allocations: 97.14 kB / 447.5 MB, free: 42.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-06/0.1794, allocations: 25.7 kB / 447.5 MB, free: 42.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.136e-05/0.1794, allocations: 81.55 kB / 447.6 MB, free: 42.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/0.1795, allocations: 4 kB / 447.6 MB, free: 42.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.352e-05/0.1795, allocations: 16.34 kB / 447.6 MB, free: 42.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.469e-05/0.1795, allocations: 314.5 kB / 447.9 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.211e-05/0.1795, allocations: 29.7 kB / 448 MB, free: 41.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.135e-05/0.1795, allocations: 28.36 kB / 448 MB, free: 41.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.012e-05/0.1796, allocations: 63.2 kB / 448.1 MB, free: 41.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1796, allocations: 2.938 kB / 448.1 MB, free: 41.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.179e-05/0.1796, allocations: 92.91 kB / 448.2 MB, free: 41.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.1797, allocations: 28.58 kB / 448.2 MB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.1797, allocations: 2.875 kB / 448.2 MB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1797, allocations: 0 / 448.2 MB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.1797, allocations: 3.938 kB / 448.2 MB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1797, allocations: 4.094 kB / 448.2 MB, free: 41.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.274e-05/0.1797, allocations: 7.172 kB / 448.2 MB, free: 41.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.1797, allocations: 2.938 kB / 448.2 MB, free: 41.7 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.052e-05/0.1797, allocations: 134.6 kB / 448.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.068e-06/0.1797, allocations: 3.953 kB / 448.3 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.528e-05/0.1798, allocations: 7.094 kB / 448.4 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1798, allocations: 0 / 448.4 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1798, allocations: 3.938 kB / 448.4 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1798, allocations: 3 kB / 448.4 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.88e-05/0.1798, allocations: 96.7 kB / 448.5 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.1798, allocations: 10.97 kB / 448.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.1798, allocations: 0 / 448.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.1798, allocations: 4 kB / 448.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.1798, allocations: 3.938 kB / 448.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.1798, allocations: 0 / 448.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1798, allocations: 0 / 448.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.214e-05/0.1799, allocations: 122.4 kB / 448.6 MB, free: 41.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.891e-06/0.1799, allocations: 3.328 kB / 448.6 MB, free: 41.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.009e-05/0.1799, allocations: 3.188 kB / 448.6 MB, free: 41.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.64e-06/0.1799, allocations: 0 / 448.6 MB, free: 41.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.1799, allocations: 3.969 kB / 448.6 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.1799, allocations: 6.906 kB / 448.6 MB, free: 41.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.019e-05/0.1799, allocations: 75.28 kB / 448.7 MB, free: 41.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1799, allocations: 0 / 448.7 MB, free: 41.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002149/0.1802, allocations: 69.23 kB / 448.7 MB, free: 41.18 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000535/0.1807, allocations: 359.1 kB / 449.1 MB, free: 41.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.703e-05/0.1808, allocations: 115.5 kB / 449.2 MB, free: 40.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1808, allocations: 0 / 449.2 MB, free: 40.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.691e-05/0.1808, allocations: 87.95 kB / 449.3 MB, free: 40.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001135/0.1809, allocations: 7.031 kB / 449.3 MB, free: 40.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000188/0.1811, allocations: 135.4 kB / 449.4 MB, free: 40.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.271e-05/0.1811, allocations: 64.3 kB / 449.5 MB, free: 40.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.32e-05/0.1812, allocations: 8.5 kB / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1812, allocations: 0 / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of Templates: time 0.002654/0.1838, allocations: 1.691 MB / 451.2 MB, free: 40.39 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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: 5.267125113867223]