Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.001075/0.001075, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001045/0.001045, allocations: 170.4 kB / 25.61 MB, free: 8.902 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.8836/0.8836, allocations: 177.1 MB / 206.1 MB, free: 4.5 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.1952/0.1952, allocations: 32.8 MB / 295.4 MB, free: 15.37 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.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.397e-05/1.583e-05, allocations: 2.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001276/0.001292, allocations: 0.5037 MB / 377.7 MB, free: 25.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00094/0.002232, allocations: 0.9001 MB / 378.6 MB, free: 24.22 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.435e-05/0.002266, allocations: 0 / 378.6 MB, free: 24.22 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.002283, allocations: 0 / 378.6 MB, free: 24.22 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.002477, allocations: 7.984 kB / 378.6 MB, free: 24.21 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.002933, allocations: 64.56 kB / 378.7 MB, free: 24.16 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.807e-05/0.002981, allocations: 4 kB / 378.7 MB, free: 24.15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.222e-05/0.003014, allocations: 0 / 378.7 MB, free: 24.15 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.592e-05/0.003039, allocations: 4 kB / 378.7 MB, free: 24.15 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.558e-05/0.003075, allocations: 0 / 378.7 MB, free: 24.15 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.145e-06/0.003083, allocations: 0 / 378.7 MB, free: 24.15 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.003187, allocations: 59.92 kB / 378.8 MB, free: 24.09 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.566e-06/0.003196, allocations: 0 / 378.8 MB, free: 24.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.397e-05/0.00321, allocations: 7.938 kB / 378.8 MB, free: 24.08 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.00334, allocations: 55.86 kB / 378.8 MB, free: 24.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.003342, allocations: 3.938 kB / 378.8 MB, free: 24.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.003343, allocations: 0 / 378.8 MB, free: 24.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.003346, allocations: 0 / 378.8 MB, free: 24.02 MB / 314.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.0002119/0.003558, allocations: 381.9 kB / 379.2 MB, free: 23.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.003592, allocations: 15.98 kB / 379.2 MB, free: 23.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.418e-05/0.003616, allocations: 0.9375 kB / 379.2 MB, free: 23.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.564e-05/0.003672, allocations: 108.6 kB / 379.3 MB, free: 23.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.003682, allocations: 4.375 kB / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-06/0.003687, allocations: 384 / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.378e-05/0.003741, allocations: 59.91 kB / 379.4 MB, free: 23.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.003747, allocations: 192 / 379.4 MB, free: 23.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-06/0.003752, allocations: 384 / 379.4 MB, free: 23.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.003757, allocations: 384 / 379.4 MB, free: 23.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.08e-05/0.003768, allocations: 33.62 kB / 379.4 MB, free: 23.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.304e-05/0.003831, allocations: 101.2 kB / 379.5 MB, free: 23.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.629e-05/0.003867, allocations: 56.77 kB / 379.6 MB, free: 23.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.191e-05/0.003879, allocations: 41.48 kB / 379.6 MB, free: 23.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-06/0.003882, allocations: 0 / 379.6 MB, free: 23.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.003907, allocations: 67.02 kB / 379.7 MB, free: 23.01 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.003908, allocations: 0 / 379.7 MB, free: 23.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001206/0.004028, allocations: 118.8 kB / 379.8 MB, free: 22.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.00405, allocations: 77.11 kB / 379.9 MB, free: 22.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.231e-05/0.004092, allocations: 149.9 kB / 380 MB, free: 22.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-06/0.004097, allocations: 29.69 kB / 380.1 MB, free: 22.58 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.406e-05/0.004111, allocations: 130.9 kB / 380.2 MB, free: 22.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.004124, allocations: 12.55 kB / 380.2 MB, free: 22.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.004149, allocations: 19.38 kB / 380.2 MB, free: 22.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.004197, allocations: 0.4883 MB / 380.7 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.728e-06/0.004206, allocations: 25.7 kB / 380.7 MB, free: 21.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.648e-06/0.004216, allocations: 29.64 kB / 380.8 MB, free: 21.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.55e-05/0.004241, allocations: 67.03 kB / 380.8 MB, free: 21.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.004243, allocations: 0 / 380.8 MB, free: 21.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.099e-05/0.004294, allocations: 89.09 kB / 380.9 MB, free: 21.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.004316, allocations: 35.73 kB / 380.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.004321, allocations: 0 / 380.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.787e-06/0.004329, allocations: 4.094 kB / 380.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.00433, allocations: 0 / 380.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-06/0.004333, allocations: 0 / 380.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.144e-05/0.004344, allocations: 0 / 380.9 MB, free: 21.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.004351, allocations: 7.922 kB / 381 MB, free: 21.6 MB / 314.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 5.284e-05/0.004404, allocations: 190.3 kB / 381.1 MB, free: 21.4 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.004411, allocations: 7.938 kB / 381.1 MB, free: 21.39 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.077e-06/0.00442, allocations: 3 kB / 381.1 MB, free: 21.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.004422, allocations: 0 / 381.1 MB, free: 21.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.004423, allocations: 0 / 381.1 MB, free: 21.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.004426, allocations: 4 kB / 381.2 MB, free: 21.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.869e-05/0.004475, allocations: 97.2 kB / 381.2 MB, free: 21.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.004477, allocations: 3.984 kB / 381.3 MB, free: 21.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.004477, allocations: 0 / 381.3 MB, free: 21.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.004479, allocations: 0 / 381.3 MB, free: 21.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-06/0.004483, allocations: 0 / 381.3 MB, free: 21.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.004483, allocations: 0 / 381.3 MB, free: 21.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.004484, allocations: 0 / 381.3 MB, free: 21.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.396e-05/0.004558, allocations: 135.8 kB / 381.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-06/0.004562, allocations: 0 / 381.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.004573, allocations: 0 / 381.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.184e-06/0.00458, allocations: 4.031 kB / 381.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.044e-05/0.004591, allocations: 4 kB / 381.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.004594, allocations: 4 kB / 381.4 MB, free: 21.08 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.628e-05/0.00461, allocations: 123.1 kB / 381.5 MB, free: 20.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.00461, allocations: 0 / 381.5 MB, free: 20.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00021/0.00482, allocations: 19.94 kB / 381.5 MB, free: 20.94 MB / 314.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.0003424/0.005162, allocations: 200.6 kB / 381.7 MB, free: 20.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.457e-05/0.005237, allocations: 126.5 kB / 381.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.005238, allocations: 0 / 381.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.944e-05/0.005258, allocations: 92.86 kB / 381.9 MB, free: 20.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001157/0.005373, allocations: 3.938 kB / 381.9 MB, free: 20.51 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001255/0.005499, allocations: 113 kB / 382.1 MB, free: 20.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.447e-05/0.005513, allocations: 59.22 kB / 382.1 MB, free: 20.29 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.237e-06/0.005517, allocations: 0 / 382.1 MB, free: 20.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.005541, allocations: 70.2 kB / 382.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.005542, allocations: 0 / 382.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of Templates: time 0.001966/0.007508, allocations: 0.7888 MB / 383 MB, free: 19.44 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0120669272728264]