Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.0008923/0.0008923, allocations: 80.39 kB / 21.47 MB, free: 3.027 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.001106/0.001106, allocations: 171.1 kB / 24.87 MB, free: 8.367 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.9826/0.9826, allocations: 177.1 MB / 205.3 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.958/1.958, allocations: 377.9 MB / 0.6247 GB, free: 8.961 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.445e-06/2.445e-06, allocations: 6.688 kB / 0.8128 GB, free: 42.58 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.539e-05, allocations: 5.75 kB / 0.8128 GB, free: 42.57 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002303/0.002329, allocations: 1.731 MB / 0.8145 GB, free: 41.45 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.00073/0.003059, allocations: 0.5045 MB / 0.815 GB, free: 41.13 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.251e-05/0.003131, allocations: 4.938 kB / 0.815 GB, free: 41.12 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.925e-05/0.00316, allocations: 3.938 kB / 0.815 GB, free: 41.12 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 8.462e-05/0.003245, allocations: 23.88 kB / 0.815 GB, free: 41.11 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.003481, allocations: 45.38 kB / 0.815 GB, free: 41.09 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.003605, allocations: 91.06 kB / 0.8151 GB, free: 41.05 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 9.071e-05/0.003696, allocations: 13.33 kB / 0.8151 GB, free: 41.04 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.003827, allocations: 63.7 kB / 0.8152 GB, free: 41.01 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.632e-05/0.003883, allocations: 26.66 kB / 0.8152 GB, free: 41 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.0039, allocations: 9.234 kB / 0.8152 GB, free: 41 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 3.912e-05/0.003939, allocations: 14.81 kB / 0.8152 GB, free: 40.99 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.928e-05/0.003959, allocations: 20.47 kB / 0.8153 GB, free: 40.98 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 2.66e-05/0.003985, allocations: 23.62 kB / 0.8153 GB, free: 40.97 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.004121, allocations: 66.17 kB / 0.8153 GB, free: 40.93 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.004125, allocations: 0 / 0.8153 GB, free: 40.93 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.392e-06/0.004126, allocations: 0 / 0.8153 GB, free: 40.93 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.004131, allocations: 0 / 0.8153 GB, free: 40.93 MB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003697/0.004501, allocations: 418.3 kB / 0.8157 GB, free: 40.54 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.004541, allocations: 9.844 kB / 0.8158 GB, free: 40.54 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.004693, allocations: 25.2 kB / 0.8158 GB, free: 40.53 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.004835, allocations: 144.6 kB / 0.8159 GB, free: 40.38 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.809e-06/0.004845, allocations: 3.281 kB / 0.8159 GB, free: 40.38 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.004857, allocations: 7.25 kB / 0.8159 GB, free: 40.38 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.00499, allocations: 118.3 kB / 0.816 GB, free: 40.27 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.004997, allocations: 192 / 0.816 GB, free: 40.27 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.005007, allocations: 3.125 kB / 0.816 GB, free: 40.27 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.005013, allocations: 7.875 kB / 0.816 GB, free: 40.26 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.4e-05/0.005047, allocations: 16.2 kB / 0.8161 GB, free: 40.26 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002792/0.005326, allocations: 285.5 kB / 0.8163 GB, free: 40 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 7.022e-05/0.005396, allocations: 45.14 kB / 0.8164 GB, free: 39.95 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.01e-05/0.005416, allocations: 15.94 kB / 0.8164 GB, free: 39.94 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.005431, allocations: 5.703 kB / 0.8164 GB, free: 39.94 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.519e-05/0.005446, allocations: 33.39 kB / 0.8164 GB, free: 39.89 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.005447, allocations: 2.375 kB / 0.8164 GB, free: 39.89 MB / 0.7605 GB Notification: Performance of matching and sorting (n=4): time 0.0001438/0.005591, allocations: 60.48 kB / 0.8165 GB, free: 39.85 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.005617, allocations: 79.39 kB / 0.8166 GB, free: 39.76 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.664e-05/0.005684, allocations: 188.7 kB / 0.8167 GB, free: 39.59 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.005698, allocations: 29.7 kB / 0.8168 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.005741, allocations: 148.7 kB / 0.8169 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.005758, allocations: 11.02 kB / 0.8169 GB, free: 39.4 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.005788, allocations: 26.17 kB / 0.817 GB, free: 39.38 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 5.314e-05/0.005841, allocations: 498.9 kB / 0.8174 GB, free: 38.88 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.638e-05/0.005858, allocations: 9.562 kB / 0.8174 GB, free: 38.88 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.83e-05/0.005886, allocations: 46.77 kB / 0.8175 GB, free: 38.82 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.533e-05/0.005921, allocations: 22.41 kB / 0.8175 GB, free: 38.81 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.005923, allocations: 0.9688 kB / 0.8175 GB, free: 38.81 MB / 0.7605 GB Notification: Performance of matching and sorting (n=5) (initialization): time 7.099e-05/0.005994, allocations: 66.59 kB / 0.8176 GB, free: 38.76 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.006007, allocations: 5.688 kB / 0.8176 GB, free: 38.76 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.006011, allocations: 0 / 0.8176 GB, free: 38.76 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.186e-06/0.00602, allocations: 1.5 kB / 0.8176 GB, free: 38.76 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.354e-05/0.006083, allocations: 8.781 kB / 0.8176 GB, free: 38.76 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.895e-06/0.006086, allocations: 0 / 0.8176 GB, free: 38.76 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.184e-05/0.006118, allocations: 14.3 kB / 0.8176 GB, free: 38.75 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.006123, allocations: 2.812 kB / 0.8176 GB, free: 38.75 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 5.453e-05/0.006178, allocations: 164.9 kB / 0.8178 GB, free: 38.59 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.047e-05/0.006198, allocations: 10.55 kB / 0.8178 GB, free: 38.58 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.501e-05/0.006223, allocations: 11.25 kB / 0.8178 GB, free: 38.57 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.006226, allocations: 0 / 0.8178 GB, free: 38.57 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.006229, allocations: 2.281 kB / 0.8178 GB, free: 38.57 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.006232, allocations: 0 / 0.8178 GB, free: 38.57 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/0.006333, allocations: 114.7 kB / 0.8179 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.006334, allocations: 1.562 kB / 0.8179 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.133e-05/0.006366, allocations: 12.8 kB / 0.8179 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.006367, allocations: 2.656 kB / 0.8179 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.006373, allocations: 7.875 kB / 0.8179 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.006375, allocations: 0.7812 kB / 0.8179 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.006376, allocations: 0 / 0.8179 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.654e-05/0.006472, allocations: 204.5 kB / 0.8181 GB, free: 38.24 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 1.038e-05/0.006483, allocations: 7.984 kB / 0.8181 GB, free: 38.24 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.0065, allocations: 6.75 kB / 0.8181 GB, free: 38.23 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.301e-05/0.006543, allocations: 9.125 kB / 0.8181 GB, free: 38.23 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.006579, allocations: 11.83 kB / 0.8181 GB, free: 38.23 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.006585, allocations: 3.938 kB / 0.8181 GB, free: 38.23 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 3.057e-05/0.006616, allocations: 135.5 kB / 0.8183 GB, free: 38.11 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5e-08/0.006616, allocations: 0 / 0.8183 GB, free: 38.11 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0001498/0.006766, allocations: 14.44 kB / 0.8183 GB, free: 38.11 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 7.815e-05/0.006844, allocations: 104.8 kB / 0.8184 GB, free: 38.02 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 8.738e-05/0.006931, allocations: 29.91 kB / 0.8184 GB, free: 38 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.006933, allocations: 0 / 0.8184 GB, free: 38 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 2.361e-05/0.006956, allocations: 17.97 kB / 0.8184 GB, free: 37.99 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.007128, allocations: 13.77 kB / 0.8184 GB, free: 37.99 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004568/0.007585, allocations: 196.5 kB / 0.8186 GB, free: 37.82 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.409e-05/0.007619, allocations: 61.56 kB / 0.8187 GB, free: 37.75 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 3.469e-05/0.007654, allocations: 6.328 kB / 0.8187 GB, free: 37.75 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.274e-05/0.007717, allocations: 79.73 kB / 0.8188 GB, free: 37.68 MB / 0.7605 GB Notification: Performance of SimCode: time 9.82e-07/0.007718, allocations: 1 kB / 0.8188 GB, free: 37.68 MB / 0.7605 GB Notification: Performance of Templates: time 0.002947/0.01066, allocations: 1.025 MB / 0.8198 GB, free: 37.63 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.348359693773091]