Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_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_9_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.001586/0.001585, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001761/0.001761, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 0.9515 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8711/0.8724, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002906/0.8753, allocations: 1.673 MB / 1.09 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007817/0.8761, allocations: 445.3 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.474e-05/0.8762, allocations: 1.125 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.571e-05/0.8762, allocations: 6.234 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.09e-05/0.8763, allocations: 22.5 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.8765, allocations: 31.98 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.8767, allocations: 84.67 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.8768, allocations: 27.8 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.8769, allocations: 33.2 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.949e-05/0.877, allocations: 34.25 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.8771, allocations: 11.91 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.995e-05/0.8771, allocations: 7.375 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.775e-05/0.8771, allocations: 20.12 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.53e-05/0.8772, allocations: 36.34 kB / 1.091 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.8773, allocations: 85.95 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.8774, allocations: 0.75 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.184e-06/0.8774, allocations: 0 / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.8774, allocations: 1.156 kB / 1.091 GB, free: 3.812 MB / 0.8575 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.000513/0.8779, allocations: 395.2 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.8779, allocations: 8.438 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.131e-05/0.878, allocations: 13.42 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.8781, allocations: 178.4 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.8781, allocations: 3 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.8782, allocations: 7.156 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.8784, allocations: 92.56 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.8784, allocations: 1.094 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.8784, allocations: 0 / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.8784, allocations: 2.859 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.8786, allocations: 50.78 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004667/0.8791, allocations: 330 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.8793, allocations: 48.34 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.245e-05/0.8794, allocations: 33.42 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.8794, allocations: 0.75 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.8794, allocations: 32.27 kB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.8794, allocations: 0 / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003475/0.8798, allocations: 105.4 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.8798, allocations: 78.61 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.587e-05/0.8799, allocations: 133.7 kB / 1.092 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.8799, allocations: 30.64 kB / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.451e-05/0.88, allocations: 99.3 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.88, allocations: 6.984 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.88, allocations: 19.55 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.8801, allocations: 323.3 kB / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-05/0.8802, allocations: 25.14 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.838e-05/0.8803, allocations: 45.48 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.8804, allocations: 43.92 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8805, allocations: 0 / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002038/0.8807, allocations: 92.91 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.8807, allocations: 5.281 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.8807, allocations: 0.6875 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.8807, allocations: 4.906 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.8808, allocations: 13.67 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.842e-06/0.8808, allocations: 1.312 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.221e-05/0.8809, allocations: 14.42 kB / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.8809, allocations: 5.797 kB / 1.093 GB, free: 1.867 MB / 0.8575 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 6.665e-05/0.881, allocations: 115.3 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.8811, allocations: 7.766 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.231e-05/0.8811, allocations: 10.89 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.8811, allocations: 5.141 kB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.8811, allocations: 5.047 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.8811, allocations: 0.5625 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.8813, allocations: 195.4 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.8813, allocations: 0 / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.089e-05/0.8814, allocations: 13.88 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.8814, allocations: 1.125 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.8814, allocations: 1.5 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.8814, allocations: 0.5625 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.8814, allocations: 1.375 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.8816, allocations: 181.4 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.436e-05/0.8817, allocations: 83.97 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.8817, allocations: 2.609 kB / 1.094 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.8818, allocations: 13.64 kB / 1.094 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.8819, allocations: 7.547 kB / 1.094 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.8819, allocations: 2.203 kB / 1.094 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.387e-05/0.8819, allocations: 112.2 kB / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8819, allocations: 0 / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002288/0.8822, allocations: 10.38 kB / 1.094 GB, free: 1.168 MB / 0.8575 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 9.819e-05/0.8823, allocations: 104.9 kB / 1.094 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.8825, allocations: 50.78 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.8825, allocations: 0.9688 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.158e-05/0.8826, allocations: 39.92 kB / 1.094 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.8829, allocations: 3.828 kB / 1.094 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003798/0.8833, allocations: 200.4 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.8834, allocations: 0.6893 MB / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.8835, allocations: 16.5 kB / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of SimCode: time 2.01e-07/0.8835, allocations: 0 / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of Templates: time 0.002812/0.8863, allocations: 1.007 MB / 1.096 GB, free: 80 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches