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.001208/0.001208, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.001332/0.001332, allocations: 161 kB / 24.16 MB, free: 336 kB / 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.9367/0.9367, allocations: 177.1 MB / 204.6 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.791/1.791, allocations: 377.9 MB / 0.624 GB, free: 8.391 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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 1.362e-06/1.362e-06, allocations: 0.7656 kB / 0.76 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.22e-05/1.357e-05, allocations: 3.188 kB / 0.76 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001897/0.001911, allocations: 1.748 MB / 0.7617 GB, free: 4.922 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0006469/0.002557, allocations: 0.5173 MB / 0.7622 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.366e-05/0.002611, allocations: 5.516 kB / 0.7622 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.521e-05/0.002636, allocations: 4.875 kB / 0.7622 GB, free: 4.398 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.262e-05/0.002709, allocations: 14.22 kB / 0.7622 GB, free: 4.391 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.002894, allocations: 45.7 kB / 0.7623 GB, free: 4.348 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.003065, allocations: 96.05 kB / 0.7624 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.143e-05/0.003146, allocations: 28.12 kB / 0.7624 GB, free: 4.23 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.003273, allocations: 51.91 kB / 0.7625 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.421e-05/0.003327, allocations: 27.89 kB / 0.7625 GB, free: 4.152 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.003343, allocations: 9.219 kB / 0.7625 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 3.582e-05/0.003379, allocations: 11.98 kB / 0.7625 GB, free: 4.133 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.003395, allocations: 15.94 kB / 0.7625 GB, free: 4.117 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.003418, allocations: 29.53 kB / 0.7625 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 9.799e-05/0.003516, allocations: 63.75 kB / 0.7626 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.00352, allocations: 3.984 kB / 0.7626 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.8e-07/0.00352, allocations: 3.938 kB / 0.7626 GB, free: 4.02 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.605e-06/0.003523, allocations: 0.75 kB / 0.7626 GB, free: 4.02 MB / 0.7136 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.0002983/0.003821, allocations: 285.2 kB / 0.7629 GB, free: 3.719 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.706e-05/0.003848, allocations: 12.03 kB / 0.7629 GB, free: 3.707 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.003966, allocations: 29.66 kB / 0.7629 GB, free: 3.68 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.004084, allocations: 134.7 kB / 0.7631 GB, free: 3.523 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.004092, allocations: 384 / 0.7631 GB, free: 3.523 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.004105, allocations: 9.469 kB / 0.7631 GB, free: 3.516 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.004226, allocations: 110.3 kB / 0.7632 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.004232, allocations: 4.188 kB / 0.7632 GB, free: 3.383 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.004241, allocations: 8.922 kB / 0.7632 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.004246, allocations: 5.031 kB / 0.7632 GB, free: 3.371 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.701e-05/0.004273, allocations: 8 kB / 0.7632 GB, free: 3.363 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002255/0.004499, allocations: 189 kB / 0.7634 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.429e-05/0.004553, allocations: 31.81 kB / 0.7634 GB, free: 3.125 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.62e-05/0.004569, allocations: 8.859 kB / 0.7634 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.00458, allocations: 7.938 kB / 0.7634 GB, free: 3.105 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.004598, allocations: 31.59 kB / 0.7635 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 7.72e-07/0.004599, allocations: 0 / 0.7635 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0001044/0.004703, allocations: 53.8 kB / 0.7635 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.004732, allocations: 78.2 kB / 0.7636 GB, free: 2.914 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.164e-05/0.004794, allocations: 132.4 kB / 0.7637 GB, free: 2.773 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.004811, allocations: 33.7 kB / 0.7637 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.167e-05/0.004843, allocations: 98.81 kB / 0.7638 GB, free: 2.637 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.004856, allocations: 7.891 kB / 0.7638 GB, free: 2.629 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/0.004886, allocations: 25.7 kB / 0.7639 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.005055, allocations: 318.8 kB / 0.7642 GB, free: 2.277 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.274e-05/0.005068, allocations: 4 kB / 0.7642 GB, free: 2.273 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.922e-05/0.005097, allocations: 47.41 kB / 0.7642 GB, free: 2.215 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.576e-05/0.005133, allocations: 20.78 kB / 0.7642 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.005135, allocations: 2.562 kB / 0.7642 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 5.297e-05/0.005188, allocations: 53.62 kB / 0.7643 GB, free: 2.133 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.005197, allocations: 4 kB / 0.7643 GB, free: 2.129 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.005201, allocations: 192 / 0.7643 GB, free: 2.129 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.00521, allocations: 0 / 0.7643 GB, free: 2.129 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.441e-05/0.005264, allocations: 15.98 kB / 0.7643 GB, free: 2.113 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-06/0.005266, allocations: 0 / 0.7643 GB, free: 2.113 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.829e-05/0.005294, allocations: 8.484 kB / 0.7643 GB, free: 2.105 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.005299, allocations: 1.125 kB / 0.7643 GB, free: 2.105 MB / 0.7136 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 4.777e-05/0.005346, allocations: 109.8 kB / 0.7644 GB, free: 1.988 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.005364, allocations: 22.23 kB / 0.7644 GB, free: 1.969 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.862e-05/0.005383, allocations: 12.34 kB / 0.7645 GB, free: 1.953 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.005384, allocations: 0 / 0.7645 GB, free: 1.953 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-06/0.005386, allocations: 0 / 0.7645 GB, free: 1.953 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.005387, allocations: 0 / 0.7645 GB, free: 1.953 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.646e-05/0.005474, allocations: 81.86 kB / 0.7645 GB, free: 1.855 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.005475, allocations: 3.938 kB / 0.7645 GB, free: 1.852 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.261e-05/0.005497, allocations: 10.44 kB / 0.7645 GB, free: 1.844 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.005498, allocations: 0 / 0.7645 GB, free: 1.844 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.005505, allocations: 7.922 kB / 0.7646 GB, free: 1.836 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.005506, allocations: 0 / 0.7646 GB, free: 1.836 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.005506, allocations: 0 / 0.7646 GB, free: 1.836 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.249e-05/0.005579, allocations: 147.7 kB / 0.7647 GB, free: 1.676 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-06/0.005586, allocations: 5.828 kB / 0.7647 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.005603, allocations: 11.92 kB / 0.7647 GB, free: 1.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.013e-05/0.005643, allocations: 4 kB / 0.7647 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.073e-05/0.005674, allocations: 15.92 kB / 0.7647 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.005677, allocations: 3.984 kB / 0.7647 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.784e-05/0.005695, allocations: 23.75 kB / 0.7648 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.1e-08/0.005695, allocations: 0 / 0.7648 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001225/0.005817, allocations: 15.94 kB / 0.7648 GB, free: 1.598 MB / 0.7136 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 6.417e-05/0.005882, allocations: 81.36 kB / 0.7649 GB, free: 1.512 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.166e-05/0.005943, allocations: 31.52 kB / 0.7649 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.005945, allocations: 0 / 0.7649 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.929e-05/0.005965, allocations: 16.8 kB / 0.7649 GB, free: 1.461 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.006082, allocations: 8 kB / 0.7649 GB, free: 1.453 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003939/0.006476, allocations: 183.3 kB / 0.7651 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.885e-05/0.006505, allocations: 59.34 kB / 0.7651 GB, free: 1.172 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.618e-05/0.006531, allocations: 7.984 kB / 0.7651 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.975e-05/0.006581, allocations: 55.38 kB / 0.7652 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of SimCode: time 2.81e-07/0.006581, allocations: 1.094 kB / 0.7652 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of Templates: time 0.002248/0.00883, allocations: 0.9645 MB / 0.7661 GB, free: 204 kB / 0.7136 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: 4.639027111232281]