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.007406/0.007406, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001616/0.001616, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.328/2.328, allocations: 390.2 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 0.9508 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.075/1.077, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002981/1.08, allocations: 1.681 MB / 1.09 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007366/1.08, allocations: 441.4 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.17e-05/1.081, allocations: 4.938 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.614e-05/1.081, allocations: 5.297 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.176e-05/1.081, allocations: 16.17 kB / 1.09 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000195/1.081, allocations: 31.48 kB / 1.09 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001175/1.081, allocations: 80.95 kB / 1.09 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/1.081, allocations: 30.27 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/1.081, allocations: 38.39 kB / 1.09 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.932e-05/1.081, allocations: 41.58 kB / 1.09 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/1.081, allocations: 7.25 kB / 1.09 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.611e-05/1.081, allocations: 7.375 kB / 1.09 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.8e-05/1.081, allocations: 13.61 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.032e-05/1.082, allocations: 35.3 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001919/1.082, allocations: 87.58 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/1.082, allocations: 1.125 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/1.082, allocations: 0 / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.45e-06/1.082, allocations: 4 kB / 1.09 GB, free: 3.844 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.0004892/1.082, allocations: 393.8 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/1.082, allocations: 8.5 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.112e-05/1.082, allocations: 9.328 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/1.082, allocations: 188.6 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/1.082, allocations: 1.562 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/1.082, allocations: 7.469 kB / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/1.083, allocations: 93.75 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/1.083, allocations: 0 / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/1.083, allocations: 2.188 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/1.083, allocations: 3.938 kB / 1.091 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/1.083, allocations: 48.34 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004735/1.083, allocations: 325 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/1.084, allocations: 52.2 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.676e-05/1.084, allocations: 29.42 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/1.084, allocations: 1.469 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/1.084, allocations: 32.02 kB / 1.092 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.373e-06/1.084, allocations: 4 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003652/1.084, allocations: 105.4 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/1.084, allocations: 79.17 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/1.084, allocations: 132.1 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/1.084, allocations: 27.14 kB / 1.092 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.837e-05/1.084, allocations: 102.5 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/1.084, allocations: 10.56 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/1.084, allocations: 27.7 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.452e-05/1.084, allocations: 323.4 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.197e-05/1.085, allocations: 29.36 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.609e-05/1.085, allocations: 37.66 kB / 1.092 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/1.085, allocations: 44.64 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/1.085, allocations: 4.031 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002014/1.085, allocations: 92.39 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/1.085, allocations: 5 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/1.085, allocations: 4.578 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/1.085, allocations: 1.328 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/1.085, allocations: 10.16 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/1.085, allocations: 0 / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.829e-05/1.085, allocations: 10.95 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/1.085, allocations: 9.547 kB / 1.093 GB, free: 1.887 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 7.017e-05/1.085, allocations: 115.4 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.193e-05/1.085, allocations: 7.703 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.362e-05/1.085, allocations: 11.09 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/1.085, allocations: 1.234 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/1.085, allocations: 4.688 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/1.086, allocations: 0.7031 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/1.086, allocations: 194.8 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/1.086, allocations: 1.484 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.283e-05/1.086, allocations: 13.36 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/1.086, allocations: 1.062 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/1.086, allocations: 4.734 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.086, allocations: 1.859 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.086, allocations: 0 / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/1.086, allocations: 178.6 kB / 1.093 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.625e-05/1.086, allocations: 87.88 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/1.086, allocations: 2.156 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/1.086, allocations: 13.2 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.539e-05/1.086, allocations: 8.516 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/1.086, allocations: 2.219 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.652e-05/1.086, allocations: 104.2 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/1.086, allocations: 0 / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000225/1.087, allocations: 11.47 kB / 1.093 GB, free: 1.191 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.867e-05/1.087, allocations: 102.9 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002323/1.087, allocations: 56.64 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.087, allocations: 3.938 kB / 1.093 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.352e-05/1.087, allocations: 29.55 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/1.087, allocations: 10.2 kB / 1.093 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003978/1.088, allocations: 185.6 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/1.088, allocations: 0.6901 MB / 1.094 GB, free: 228 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.503e-05/1.088, allocations: 8.141 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/1.088, allocations: 10.91 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/1.088, allocations: 0 / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of Templates: time 0.003454/1.091, allocations: 0.8782 MB / 1.095 GB, free: 120 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/jenkins/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