Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.IO.Files.Examples.WeeklySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weeSchFil.y.1.|weeSchFil.y.2.|weeSchFil.y.3.|weeSchFil.y.4.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule") translateModel(Buildings.Utilities.IO.Files.Examples.WeeklySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weeSchFil.y.1.|weeSchFil.y.2.|weeSchFil.y.3.|weeSchFil.y.4.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008839/0.00884, allocations: 105.5 kB / 15.74 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002037/0.002037, allocations: 193.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.915/0.9164, allocations: 151.6 MB / 1.167 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.WeeklySchedule): time 0.003054/0.9195, allocations: 1.484 MB / 1.168 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001523/0.921, allocations: 1.109 MB / 1.169 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.251e-05/0.9211, allocations: 4 kB / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.9213, allocations: 23.86 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001839/0.9215, allocations: 43.77 kB / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.9217, allocations: 65.64 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.9219, allocations: 143.6 kB / 1.169 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.9221, allocations: 61.08 kB / 1.169 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.709e-05/0.9222, allocations: 83.75 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.9224, allocations: 59.66 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.9224, allocations: 8 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.512e-05/0.9225, allocations: 23.98 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.461e-05/0.9226, allocations: 51.89 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.119e-05/0.9227, allocations: 75.52 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.923, allocations: 199.8 kB / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.923, allocations: 0 / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.853e-06/0.923, allocations: 0 / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.923, allocations: 3.938 kB / 1.17 GB, free: 448 kB / 0.8887 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.000744/0.9237, allocations: 0.4945 MB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.9238, allocations: 8.031 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.695e-05/0.9239, allocations: 24.8 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.9242, allocations: 257.6 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.9243, allocations: 115.4 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.9244, allocations: 12.36 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.9247, allocations: 161.6 kB / 1.171 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.9247, allocations: 7.938 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.9247, allocations: 0 / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.199e-05/0.9248, allocations: 16 kB / 1.171 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.236e-05/0.9249, allocations: 43.97 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.9259, allocations: 452.4 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 7.419e-05/0.926, allocations: 38.56 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.361e-05/0.9261, allocations: 24.84 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.9261, allocations: 8.141 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.9261, allocations: 34.56 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.9261, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.000286/0.9264, allocations: 105.5 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.9265, allocations: 51.41 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.9267, allocations: 227.7 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.9268, allocations: 33.7 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.447e-05/0.9269, allocations: 120.2 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/0.9269, allocations: 31.73 kB / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.045e-05/0.927, allocations: 29.7 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.9271, allocations: 326.8 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.392e-05/0.9272, allocations: 23.98 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.9273, allocations: 102.3 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.9275, allocations: 142.1 kB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.9275, allocations: 0 / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002557/0.9278, allocations: 153.3 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.9278, allocations: 8 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.9278, allocations: 4 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.9278, allocations: 4.375 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.928, allocations: 31.86 kB / 1.173 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.928, allocations: 7.938 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.544e-05/0.928, allocations: 4 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.9281, allocations: 11.98 kB / 1.173 GB, free: 13.05 MB / 0.9044 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 0.0001404/0.9282, allocations: 145.7 kB / 1.173 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.673e-05/0.9283, allocations: 19.86 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002189/0.9285, allocations: 115 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.9285, allocations: 3.984 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.9285, allocations: 11.94 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.9285, allocations: 0 / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002607/0.9288, allocations: 229.6 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.9288, allocations: 0 / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.958e-05/0.9289, allocations: 19.92 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.9289, allocations: 0 / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.9289, allocations: 0 / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.9289, allocations: 0 / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.9289, allocations: 3.938 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.9291, allocations: 191.4 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.455e-05/0.9292, allocations: 96.95 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.9292, allocations: 0 / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.9295, allocations: 19.97 kB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.164e-05/0.9295, allocations: 7.938 kB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.9295, allocations: 19.97 kB / 1.174 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001524/0.9297, allocations: 156.2 kB / 1.174 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9297, allocations: 0 / 1.174 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003121/0.93, allocations: 35.95 kB / 1.174 GB, free: 11.9 MB / 0.9044 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.0002853/0.9303, allocations: 137.2 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001873/0.9305, allocations: 76.5 kB / 1.174 GB, free: 11.69 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.9305, allocations: 3.938 kB / 1.174 GB, free: 11.69 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.818e-05/0.9305, allocations: 23.98 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.9308, allocations: 14.41 kB / 1.174 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000479/0.9313, allocations: 299.3 kB / 1.174 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.9317, allocations: 0.743 MB / 1.175 GB, free: 10.56 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001157/0.9318, allocations: 56.72 kB / 1.175 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.9318, allocations: 15.44 kB / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of SimCode: time 3.1e-07/0.9318, allocations: 0 / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of Templates: time 0.005103/0.9369, allocations: 2.378 MB / 1.178 GB, free: 8.141 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_WeeklySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches