Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.001967/0.001967, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.403/1.403, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.702/2.702, allocations: 472.7 MB / 0.746 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001469, allocations: 60.05 kB / 1.07 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045/1.046, allocations: 159.9 MB / 1.226 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.004636/1.051, allocations: 1.661 MB / 1.228 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001343/1.052, allocations: 456.1 kB / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.053e-05/1.052, allocations: 0 / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 6.059e-05/1.052, allocations: 15.86 kB / 1.228 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000134/1.053, allocations: 11.81 kB / 1.228 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/1.053, allocations: 27.95 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001978/1.053, allocations: 79.78 kB / 1.229 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/1.053, allocations: 27.98 kB / 1.229 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/1.053, allocations: 39.8 kB / 1.229 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/1.054, allocations: 43.81 kB / 1.229 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/1.054, allocations: 4 kB / 1.229 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 2.341e-05/1.054, allocations: 8 kB / 1.229 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.633e-05/1.054, allocations: 15.94 kB / 1.229 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.368e-05/1.054, allocations: 39.8 kB / 1.229 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001986/1.054, allocations: 83.27 kB / 1.229 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/1.054, allocations: 0 / 1.229 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.324e-06/1.054, allocations: 0 / 1.229 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.241e-05/1.054, allocations: 0 / 1.229 GB, free: 11.05 MB / 0.9512 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.0007733/1.055, allocations: 396 kB / 1.229 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/1.055, allocations: 8.031 kB / 1.229 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.471e-05/1.055, allocations: 12.83 kB / 1.229 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/1.055, allocations: 186 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/1.055, allocations: 4.375 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.655e-05/1.055, allocations: 4.375 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/1.056, allocations: 95.67 kB / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/1.056, allocations: 0 / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/1.056, allocations: 0 / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/1.056, allocations: 0 / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/1.056, allocations: 59.84 kB / 1.23 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007266/1.057, allocations: 324.7 kB / 1.23 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/1.057, allocations: 54.58 kB / 1.23 GB, free: 9.781 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/1.057, allocations: 32.94 kB / 1.23 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/1.057, allocations: 4 kB / 1.23 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/1.057, allocations: 30.56 kB / 1.23 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 1.994e-06/1.057, allocations: 0 / 1.23 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4): time 0.0005708/1.058, allocations: 101.6 kB / 1.23 GB, free: 9.598 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.96e-05/1.058, allocations: 85.05 kB / 1.23 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/1.058, allocations: 128.4 kB / 1.23 GB, free: 9.359 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/1.058, allocations: 33.7 kB / 1.23 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/1.058, allocations: 104 kB / 1.23 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/1.058, allocations: 7.906 kB / 1.23 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.285e-05/1.058, allocations: 21.7 kB / 1.23 GB, free: 9.18 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001482/1.058, allocations: 322.8 kB / 1.231 GB, free: 8.855 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/1.059, allocations: 19.98 kB / 1.231 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/1.059, allocations: 45.69 kB / 1.231 GB, free: 8.785 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/1.059, allocations: 44.97 kB / 1.231 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/1.059, allocations: 4 kB / 1.231 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003519/1.059, allocations: 89.55 kB / 1.231 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/1.06, allocations: 8 kB / 1.231 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/1.06, allocations: 0 / 1.231 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/1.06, allocations: 0 / 1.231 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/1.06, allocations: 20.02 kB / 1.231 GB, free: 8.613 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/1.06, allocations: 0 / 1.231 GB, free: 8.613 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/1.06, allocations: 7.984 kB / 1.231 GB, free: 8.605 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/1.06, allocations: 4 kB / 1.231 GB, free: 8.602 MB / 0.9512 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 0.0001511/1.06, allocations: 118.3 kB / 1.231 GB, free: 8.477 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/1.06, allocations: 11.89 kB / 1.231 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.394e-05/1.06, allocations: 8.25 kB / 1.231 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/1.06, allocations: 0 / 1.231 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.06, allocations: 4 kB / 1.231 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/1.06, allocations: 92.98 kB / 1.231 GB, free: 8.336 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/1.06, allocations: 3.938 kB / 1.231 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/1.061, allocations: 11.98 kB / 1.231 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.359e-05/1.061, allocations: 11.98 kB / 1.231 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004475/1.061, allocations: 160.9 kB / 1.231 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004291/1.062, allocations: 254.8 kB / 1.232 GB, free: 7.879 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000153/1.062, allocations: 27.92 kB / 1.232 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.456e-05/1.062, allocations: 95.27 kB / 1.232 GB, free: 7.758 MB / 0.9512 GB Notification: Performance of Backend: time 7.11e-07/1.062, allocations: 0 / 1.232 GB, free: 7.758 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006799/1.063, allocations: 122.2 kB / 1.232 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0007431/1.063, allocations: 0.621 MB / 1.232 GB, free: 6.961 MB / 0.9512 GB Notification: Performance of Templates: time 0.00507/1.068, allocations: 1.042 MB / 1.233 GB, free: 5.938 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches