Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007113/0.0007113, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001044/0.001755, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006105/0.0006105, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009056/0.001516, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9259/0.9259, allocations: 173.4 MB / 186 MB, free: 7.543 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1756/1.102, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.182/0.182, allocations: 32.79 MB / 272 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02269/0.2047, allocations: 12.54 MB / 284.5 MB, free: 9.707 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 285.8 MB, free: 8.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.839e-05/1.961e-05, allocations: 2.312 kB / 285.8 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001161/0.00118, allocations: 0.5424 MB / 286.4 MB, free: 7.895 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.002769, allocations: 1.441 MB / 287.8 MB, free: 6.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.912e-05/0.002788, allocations: 4 kB / 287.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.506e-06/0.002791, allocations: 0 / 287.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-05/0.002846, allocations: 4 kB / 287.8 MB, free: 6.441 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.0008157/0.003662, allocations: 258.1 kB / 288.1 MB, free: 6.199 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.149e-05/0.003713, allocations: 0 / 288.1 MB, free: 6.199 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.37e-05/0.003747, allocations: 7.938 kB / 288.1 MB, free: 6.191 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.981e-05/0.003787, allocations: 4 kB / 288.1 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.712e-05/0.003824, allocations: 2.672 kB / 288.1 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.913e-06/0.003831, allocations: 0 / 288.1 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.00606, allocations: 1.001 MB / 289.1 MB, free: 5.441 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.177e-05/0.006072, allocations: 4 kB / 289.1 MB, free: 5.438 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.273e-05/0.006084, allocations: 0 / 289.1 MB, free: 5.438 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.006315, allocations: 179.5 kB / 289.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.154e-05/0.006326, allocations: 7.984 kB / 289.3 MB, free: 5.254 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.006327, allocations: 0 / 289.3 MB, free: 5.254 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.106e-06/0.006335, allocations: 0 / 289.3 MB, free: 5.254 MB / 282.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.0002704/0.006605, allocations: 294.1 kB / 289.6 MB, free: 4.938 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.006636, allocations: 8.031 kB / 289.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.311e-05/0.006659, allocations: 4.938 kB / 289.6 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.403e-05/0.006743, allocations: 101.8 kB / 289.7 MB, free: 4.801 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.444e-06/0.006751, allocations: 4.375 kB / 289.7 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.006761, allocations: 12.31 kB / 289.7 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.832e-05/0.006819, allocations: 59.95 kB / 289.7 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.27e-06/0.006824, allocations: 192 / 289.7 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.006831, allocations: 4.125 kB / 289.7 MB, free: 4.711 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.006838, allocations: 7.984 kB / 289.8 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.298e-05/0.006851, allocations: 25.7 kB / 289.8 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.575e-05/0.006907, allocations: 60.98 kB / 289.8 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.442e-05/0.006941, allocations: 40.28 kB / 289.9 MB, free: 4.543 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.00696, allocations: 42.58 kB / 289.9 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-06/0.006963, allocations: 4 kB / 289.9 MB, free: 4.488 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.00699, allocations: 56.27 kB / 290 MB, free: 4.418 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 4.81e-07/0.006991, allocations: 0 / 290 MB, free: 4.418 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 9.526e-05/0.007086, allocations: 110.8 kB / 290.1 MB, free: 4.285 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.007149, allocations: 166.2 kB / 290.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.442e-05/0.007203, allocations: 106.6 kB / 290.4 MB, free: 3.969 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.007211, allocations: 25.7 kB / 290.4 MB, free: 3.938 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.939e-05/0.007231, allocations: 84.14 kB / 290.5 MB, free: 3.852 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.007247, allocations: 3.953 kB / 290.5 MB, free: 3.848 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-05/0.007268, allocations: 13.97 kB / 290.5 MB, free: 3.828 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.748e-05/0.007336, allocations: 318.8 kB / 290.8 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.363e-05/0.007349, allocations: 29.64 kB / 290.8 MB, free: 3.473 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.17e-05/0.007361, allocations: 29.7 kB / 290.8 MB, free: 3.438 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.072e-05/0.007392, allocations: 60.27 kB / 290.9 MB, free: 3.363 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.007393, allocations: 0 / 290.9 MB, free: 3.363 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.954e-05/0.007443, allocations: 85.09 kB / 291 MB, free: 3.262 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.007475, allocations: 36.83 kB / 291 MB, free: 3.223 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.007479, allocations: 0 / 291 MB, free: 3.223 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.007488, allocations: 4.094 kB / 291 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.00749, allocations: 0 / 291 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.567e-06/0.007494, allocations: 0 / 291 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.242e-05/0.007506, allocations: 3.938 kB / 291 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-06/0.007512, allocations: 7.938 kB / 291 MB, free: 3.207 MB / 282.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 6.181e-05/0.007573, allocations: 139.5 kB / 291.2 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-06/0.00758, allocations: 4 kB / 291.2 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.068e-05/0.00759, allocations: 7.109 kB / 291.2 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.007592, allocations: 0 / 291.2 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.007593, allocations: 0 / 291.2 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.007597, allocations: 3.938 kB / 291.2 MB, free: 3.039 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.343e-05/0.00764, allocations: 69.89 kB / 291.3 MB, free: 2.953 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-07/0.007641, allocations: 0 / 291.3 MB, free: 2.953 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.007641, allocations: 0 / 291.3 MB, free: 2.953 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-06/0.007649, allocations: 7.984 kB / 291.3 MB, free: 2.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.00765, allocations: 3.938 kB / 291.3 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-06/0.007654, allocations: 4 kB / 291.3 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.007655, allocations: 0 / 291.3 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.007655, allocations: 0 / 291.3 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.54e-05/0.007721, allocations: 112.5 kB / 291.4 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.007733, allocations: 8 kB / 291.4 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.57e-06/0.007739, allocations: 7.969 kB / 291.4 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-06/0.007747, allocations: 0 / 291.4 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.007749, allocations: 0 / 291.4 MB, free: 2.781 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.809e-06/0.007759, allocations: 8.859 kB / 291.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007759, allocations: 0 / 291.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002016/0.00796, allocations: 67.8 kB / 291.5 MB, free: 2.703 MB / 282.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.000706/0.008666, allocations: 459.9 kB / 291.9 MB, free: 2.402 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.391e-05/0.00876, allocations: 127.5 kB / 292 MB, free: 2.25 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.008766, allocations: 0 / 292 MB, free: 2.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.956e-05/0.008806, allocations: 85.97 kB / 292.1 MB, free: 2.145 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.539e-05/0.008861, allocations: 11.98 kB / 292.1 MB, free: 2.133 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001423/0.009003, allocations: 118.5 kB / 292.3 MB, free: 1.984 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.543e-05/0.009029, allocations: 55.34 kB / 292.3 MB, free: 1.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.2e-06/0.009034, allocations: 0 / 292.3 MB, free: 1.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.393e-05/0.009068, allocations: 59.56 kB / 292.4 MB, free: 1.852 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.009069, allocations: 0 / 292.4 MB, free: 1.852 MB / 282.7 MB Notification: Performance of Templates: time 0.003138/0.01221, allocations: 1.871 MB / 294.2 MB, free: 15.97 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7276118006557226]