Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.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.001858/0.001858, allocations: 78.09 kB / 19.76 MB, free: 2.035 MB / 14.72 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.001822/0.001822, allocations: 158.6 kB / 23.01 MB, free: 4.945 MB / 14.72 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 1.406/1.406, allocations: 177.2 MB / 203.4 MB, free: 8.93 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.758/2.758, allocations: 377.9 MB / 0.6228 GB, free: 12.58 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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(Buildings.Utilities.IO.Files.Examples.WeeklySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|weeSchFil.y.1.|weeSchFil.y.2.|weeSchFil.y.3.|weeSchFil.y.4.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule") translateModel(Buildings.Utilities.IO.Files.Examples.WeeklySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|weeSchFil.y.1.|weeSchFil.y.2.|weeSchFil.y.3.|weeSchFil.y.4.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 75.89 kB / 0.9819 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7656/0.7677, allocations: 176.1 MB / 1.154 GB, free: 33.39 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.WeeklySchedule): time 0.002197/0.7699, allocations: 1.511 MB / 1.155 GB, free: 32.36 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.771, allocations: 1.198 MB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.827e-05/0.771, allocations: 2.812 kB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.7712, allocations: 26.31 kB / 1.157 GB, free: 31.5 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.7713, allocations: 37.08 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.7715, allocations: 61.34 kB / 1.157 GB, free: 31.44 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.7717, allocations: 149 kB / 1.157 GB, free: 31.38 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.7718, allocations: 29.89 kB / 1.157 GB, free: 31.37 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.072e-05/0.7718, allocations: 83.83 kB / 1.157 GB, free: 31.34 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.772, allocations: 57.48 kB / 1.157 GB, free: 31.31 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.772, allocations: 11.28 kB / 1.157 GB, free: 31.31 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.648e-05/0.7721, allocations: 28.02 kB / 1.157 GB, free: 31.3 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 6.692e-05/0.7721, allocations: 51.94 kB / 1.157 GB, free: 31.28 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 6.126e-05/0.7722, allocations: 64.81 kB / 1.157 GB, free: 31.24 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.7724, allocations: 193.6 kB / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.7724, allocations: 0 / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.303e-06/0.7724, allocations: 0 / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.7724, allocations: 2.719 kB / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005124/0.7729, allocations: 425.9 kB / 1.158 GB, free: 30.83 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.7729, allocations: 11.28 kB / 1.158 GB, free: 30.83 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.034e-05/0.773, allocations: 20.38 kB / 1.158 GB, free: 30.82 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.7732, allocations: 202 kB / 1.158 GB, free: 30.65 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.7733, allocations: 223.9 kB / 1.158 GB, free: 30.4 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.7734, allocations: 3.375 kB / 1.158 GB, free: 30.4 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.7737, allocations: 270.7 kB / 1.158 GB, free: 30.21 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.7737, allocations: 0 / 1.158 GB, free: 30.21 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.7737, allocations: 0 / 1.158 GB, free: 30.21 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.7737, allocations: 7.875 kB / 1.158 GB, free: 30.21 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.198e-05/0.7738, allocations: 46.03 kB / 1.158 GB, free: 30.2 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008316/0.7746, allocations: 391.3 kB / 1.159 GB, free: 29.93 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 6.214e-05/0.7747, allocations: 29.97 kB / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.227e-05/0.7747, allocations: 23.11 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.7747, allocations: 6.469 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.7748, allocations: 37.31 kB / 1.159 GB, free: 29.84 MB / 1.076 GB Notification: Performance of pre-optimization done (n=8): time 1.153e-06/0.7748, allocations: 0 / 1.159 GB, free: 29.84 MB / 1.076 GB Notification: Performance of matching and sorting (n=8): time 0.0002212/0.775, allocations: 108.5 kB / 1.159 GB, free: 29.79 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.598e-05/0.775, allocations: 51.41 kB / 1.159 GB, free: 29.72 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.7752, allocations: 216.3 kB / 1.159 GB, free: 29.59 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.7752, allocations: 29.7 kB / 1.159 GB, free: 29.55 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.237e-05/0.7752, allocations: 119.7 kB / 1.159 GB, free: 29.44 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.7752, allocations: 33.84 kB / 1.159 GB, free: 29.41 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.612e-05/0.7753, allocations: 32.36 kB / 1.159 GB, free: 29.39 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.922e-05/0.7753, allocations: 331.2 kB / 1.16 GB, free: 29.07 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.458e-05/0.7754, allocations: 29.36 kB / 1.16 GB, free: 29.06 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-05/0.7754, allocations: 95.83 kB / 1.16 GB, free: 28.96 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.7755, allocations: 143.8 kB / 1.16 GB, free: 28.83 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7755, allocations: 4 kB / 1.16 GB, free: 28.82 MB / 1.076 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001896/0.7757, allocations: 150 kB / 1.16 GB, free: 28.75 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.7757, allocations: 5.5 kB / 1.16 GB, free: 28.75 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.7757, allocations: 6.062 kB / 1.16 GB, free: 28.75 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.7757, allocations: 10.03 kB / 1.16 GB, free: 28.75 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.942e-05/0.7758, allocations: 28.77 kB / 1.16 GB, free: 28.74 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.7758, allocations: 6.812 kB / 1.16 GB, free: 28.73 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.683e-05/0.7759, allocations: 13.98 kB / 1.16 GB, free: 28.73 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.7759, allocations: 5.719 kB / 1.16 GB, free: 28.73 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (12): * Single equations (assignments): 12 * 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 7.872e-05/0.776, allocations: 154.2 kB / 1.16 GB, free: 28.59 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.005e-05/0.776, allocations: 16.69 kB / 1.16 GB, free: 28.58 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.7762, allocations: 118.6 kB / 1.161 GB, free: 28.51 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.7762, allocations: 3 kB / 1.161 GB, free: 28.51 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.7762, allocations: 0 / 1.161 GB, free: 28.51 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.7762, allocations: 3.938 kB / 1.161 GB, free: 28.51 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.7764, allocations: 152.2 kB / 1.161 GB, free: 28.37 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.7764, allocations: 4 kB / 1.161 GB, free: 28.37 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.447e-05/0.7764, allocations: 18.98 kB / 1.161 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.7764, allocations: 0 / 1.161 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.7764, allocations: 2.938 kB / 1.161 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.7764, allocations: 0 / 1.161 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.7764, allocations: 0 / 1.161 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.7765, allocations: 194.8 kB / 1.161 GB, free: 28.2 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.857e-05/0.7766, allocations: 18.03 kB / 1.161 GB, free: 28.19 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.7766, allocations: 0 / 1.161 GB, free: 28.19 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.7768, allocations: 21.77 kB / 1.161 GB, free: 28.19 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.405e-05/0.7768, allocations: 13.97 kB / 1.161 GB, free: 28.18 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.7769, allocations: 8.984 kB / 1.161 GB, free: 28.18 MB / 1.076 GB Notification: Performance of sorting global known variables: time 9.697e-05/0.777, allocations: 162.2 kB / 1.161 GB, free: 28.08 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.777, allocations: 0 / 1.161 GB, free: 28.08 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002914/0.7772, allocations: 27.91 kB / 1.161 GB, free: 28.08 MB / 1.076 GB 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 (8): * Single equations (assignments): 8 * 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.0001821/0.7774, allocations: 138.7 kB / 1.161 GB, free: 27.97 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001301/0.7776, allocations: 69.03 kB / 1.161 GB, free: 27.95 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.7776, allocations: 0 / 1.161 GB, free: 27.95 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/0.7776, allocations: 21.83 kB / 1.161 GB, free: 27.95 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.7779, allocations: 22.48 kB / 1.161 GB, free: 27.94 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003525/0.7782, allocations: 285 kB / 1.162 GB, free: 27.75 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.241e-05/0.7783, allocations: 128.9 kB / 1.162 GB, free: 27.66 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 9.845e-05/0.7784, allocations: 57.14 kB / 1.162 GB, free: 27.65 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.7784, allocations: 16.53 kB / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of SimCode: time 3.41e-07/0.7784, allocations: 0 / 1.162 GB, free: 27.64 MB / 1.076 GB Notification: Performance of Templates: time 0.004425/0.7829, allocations: 2.473 MB / 1.164 GB, free: 27.32 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_WeeklySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.164634426939301]