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.00695/0.00695, allocations: 101.2 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.001758/0.001758, allocations: 192.6 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.325/2.325, allocations: 390.2 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.91 kB / 0.9508 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.017/1.018, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002958/1.021, allocations: 1.675 MB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007058/1.022, allocations: 437 kB / 1.09 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.126e-05/1.022, allocations: 1.156 kB / 1.09 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.097e-05/1.022, allocations: 9.609 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.373e-05/1.022, allocations: 23.36 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/1.022, allocations: 24.31 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/1.023, allocations: 81.08 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/1.023, allocations: 33.97 kB / 1.09 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/1.023, allocations: 34.62 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.458e-05/1.023, allocations: 41.67 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/1.023, allocations: 7.094 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.547e-05/1.023, allocations: 7.562 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.692e-05/1.023, allocations: 13.2 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.856e-05/1.023, allocations: 39.66 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001473/1.023, allocations: 82.5 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.023, allocations: 1.281 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.363e-06/1.023, allocations: 0 / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.811e-06/1.023, allocations: 0 / 1.09 GB, free: 3.832 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.0005155/1.024, allocations: 390.8 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/1.024, allocations: 9.594 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.94e-05/1.024, allocations: 9.859 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/1.024, allocations: 187.2 kB / 1.091 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/1.024, allocations: 7.062 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/1.024, allocations: 3.562 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/1.024, allocations: 99.77 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/1.024, allocations: 2.016 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/1.024, allocations: 0 / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/1.024, allocations: 1.281 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/1.024, allocations: 51.39 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004844/1.025, allocations: 325.6 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/1.025, allocations: 56.47 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.328e-05/1.025, allocations: 29.2 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/1.025, allocations: 1.578 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/1.025, allocations: 32.22 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/1.025, allocations: 0 / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003403/1.026, allocations: 104.9 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/1.026, allocations: 83.88 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.721e-05/1.026, allocations: 125.2 kB / 1.092 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/1.026, allocations: 30.83 kB / 1.092 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.494e-05/1.026, allocations: 98.09 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/1.026, allocations: 7.328 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/1.026, allocations: 20.03 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.914e-05/1.026, allocations: 331.5 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.267e-05/1.026, allocations: 21.42 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.901e-05/1.026, allocations: 36.3 kB / 1.092 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/1.026, allocations: 48.03 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/1.026, allocations: 0.7188 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000191/1.026, allocations: 92.19 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/1.026, allocations: 6.609 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/1.026, allocations: 0 / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/1.026, allocations: 1.25 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/1.027, allocations: 13.86 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/1.027, allocations: 1 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.518e-05/1.027, allocations: 14.77 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/1.027, allocations: 4.906 kB / 1.092 GB, free: 1.883 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.658e-05/1.027, allocations: 119.1 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/1.027, allocations: 11.52 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/1.027, allocations: 11.78 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/1.027, allocations: 0.9062 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/1.027, allocations: 1.031 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/1.027, allocations: 4 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001554/1.027, allocations: 191.4 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/1.027, allocations: 4.844 kB / 1.093 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.373e-05/1.027, allocations: 14.19 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/1.027, allocations: 0.7188 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/1.027, allocations: 5.469 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.027, allocations: 0 / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.027, allocations: 5.641 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002031/1.027, allocations: 178.4 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.208e-05/1.027, allocations: 83.39 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/1.027, allocations: 2.625 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/1.028, allocations: 13.03 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/1.028, allocations: 11.94 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/1.028, allocations: 1.797 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.879e-05/1.028, allocations: 108.1 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/1.028, allocations: 0 / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002226/1.028, allocations: 11.22 kB / 1.093 GB, free: 1.176 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 0.0001059/1.028, allocations: 99.52 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002098/1.028, allocations: 63.27 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/1.028, allocations: 1.031 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.111e-05/1.028, allocations: 29.11 kB / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/1.029, allocations: 2.672 kB / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004793/1.029, allocations: 178.8 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/1.029, allocations: 0.6936 MB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.48e-05/1.029, allocations: 3.016 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.855e-05/1.029, allocations: 11.94 kB / 1.094 GB, free: 208 kB / 0.8575 GB Notification: Performance of SimCode: time 3.91e-07/1.029, allocations: 0 / 1.094 GB, free: 208 kB / 0.8575 GB Notification: Performance of Templates: time 0.003579/1.033, allocations: 0.8852 MB / 1.095 GB, free: 104 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