Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.44/1.44, allocations: 249.5 MB / 257 MB, free: 6.992 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001305/0.001306, allocations: 176.9 kB / 316.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.3 MB / 0.5671 GB, free: 15.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008554/0.0008552, allocations: 102.5 kB / 0.6714 GB, free: 4.898 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.341e-05/1.343e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1851, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7121/0.8972, allocations: 133.4 MB / 1.015 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.8975, allocations: 88.25 kB / 1.016 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004157/0.9017, allocations: 1.505 MB / 1.017 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9017, allocations: 3.938 kB / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.407e-06/0.9017, allocations: 4 kB / 1.017 GB, free: 3.113 MB / 0.6355 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.0004221/0.9022, allocations: 370 kB / 1.017 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.9022, allocations: 12.03 kB / 1.017 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.9023, allocations: 7.906 kB / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.9024, allocations: 181.9 kB / 1.018 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.9025, allocations: 0 / 1.018 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.9025, allocations: 4 kB / 1.018 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.633e-05/0.9026, allocations: 27.5 kB / 1.018 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000129/0.9027, allocations: 78.56 kB / 1.018 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.9027, allocations: 0 / 1.018 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.9028, allocations: 0 / 1.018 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.9028, allocations: 8 kB / 1.018 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.9033, allocations: 303.4 kB / 1.018 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.22e-05/0.9034, allocations: 41.95 kB / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.727e-05/0.9034, allocations: 20.23 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.9035, allocations: 0 / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.9035, allocations: 30.56 kB / 1.018 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.9035, allocations: 2.734 kB / 1.018 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001783/0.9037, allocations: 69.36 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.9037, allocations: 85.03 kB / 1.018 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.912e-05/0.9038, allocations: 109 kB / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.9039, allocations: 29.7 kB / 1.018 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/0.9039, allocations: 103.5 kB / 1.018 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.904, allocations: 11.84 kB / 1.018 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/0.904, allocations: 0 / 1.018 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.9041, allocations: 314.8 kB / 1.019 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.061e-05/0.9041, allocations: 15.5 kB / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.646e-05/0.9042, allocations: 26.22 kB / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.328e-05/0.9042, allocations: 15.73 kB / 1.019 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.9042, allocations: 4.031 kB / 1.019 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.987e-05/0.9043, allocations: 66.66 kB / 1.019 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.9044, allocations: 8 kB / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.9044, allocations: 0 / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.9044, allocations: 0 / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.9045, allocations: 15.92 kB / 1.019 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.9045, allocations: 3.953 kB / 1.019 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.531e-05/0.9046, allocations: 23.92 kB / 1.019 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.9046, allocations: 0 / 1.019 GB, free: 1.082 MB / 0.6355 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 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.843e-05/0.9047, allocations: 108.9 kB / 1.019 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.9047, allocations: 7.906 kB / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.183e-05/0.9048, allocations: 8.281 kB / 1.019 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.9048, allocations: 0 / 1.019 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.9048, allocations: 3.938 kB / 1.019 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.9048, allocations: 3.953 kB / 1.019 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.905, allocations: 161.9 kB / 1.019 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.905, allocations: 12 kB / 1.019 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.143e-05/0.9051, allocations: 11.98 kB / 1.019 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.9051, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.066e-06/0.9051, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.9051, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.9051, allocations: 0 / 1.019 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/0.9052, allocations: 165.4 kB / 1.019 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.9053, allocations: 92.94 kB / 1.019 GB, free: 476 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.9053, allocations: 4 kB / 1.019 GB, free: 472 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.9054, allocations: 15.98 kB / 1.019 GB, free: 456 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.9055, allocations: 7.984 kB / 1.019 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.9055, allocations: 96 / 1.019 GB, free: 448 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.977e-05/0.9056, allocations: 102.1 kB / 1.02 GB, free: 356 kB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9056, allocations: 0 / 1.02 GB, free: 356 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002293/0.9058, allocations: 12 kB / 1.02 GB, free: 344 kB / 0.6355 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001007/0.9059, allocations: 103.2 kB / 1.02 GB, free: 232 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000111/0.906, allocations: 35.36 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.9061, allocations: 0 / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.759e-05/0.9061, allocations: 23.81 kB / 1.02 GB, free: 192 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.9063, allocations: 3.953 kB / 1.02 GB, free: 188 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002644/0.9066, allocations: 101.1 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.9068, allocations: 0.6963 MB / 1.021 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.474e-05/0.9069, allocations: 3.984 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.284e-05/0.9069, allocations: 11.44 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/0.9069, allocations: 3.938 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of Templates: time 0.002521/0.9095, allocations: 0.6776 MB / 1.021 GB, free: 14.7 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches