Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00158/0.00158, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002415/0.002415, allocations: 191.3 kB / 16.67 MB, free: 6.582 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.467/1.467, allocations: 222.9 MB / 240.3 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.8/2.8, allocations: 469.8 MB / 0.7425 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 63.91 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3653, allocations: 159.1 MB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003919/0.3692, allocations: 1.684 MB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009464/0.3701, allocations: 442.9 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.528e-05/0.3702, allocations: 0 / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.772e-05/0.3703, allocations: 7.922 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.3704, allocations: 27.73 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.3706, allocations: 23.97 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.3708, allocations: 91.69 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.3709, allocations: 12 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.3711, allocations: 39.84 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.3712, allocations: 35.84 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.3712, allocations: 8 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.962e-05/0.3713, allocations: 8 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.181e-05/0.3713, allocations: 19.91 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.034e-05/0.3714, allocations: 31.81 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001822/0.3715, allocations: 87.62 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3715, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3715, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.772e-05/0.3716, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 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.0006774/0.3722, allocations: 399 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3723, allocations: 12.03 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.807e-05/0.3723, allocations: 8.891 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.3726, allocations: 178.1 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.3726, allocations: 12.38 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.3726, allocations: 4.312 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.3729, allocations: 95.62 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.3729, allocations: 7.938 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.3729, allocations: 0 / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3729, allocations: 0 / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.3731, allocations: 47.97 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006347/0.3737, allocations: 324.7 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.3739, allocations: 50.56 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.858e-05/0.374, allocations: 24.94 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.374, allocations: 4 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.374, allocations: 34.55 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.723e-06/0.374, allocations: 96 / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0003695/0.3744, allocations: 105.7 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.3745, allocations: 77.11 kB / 1.224 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.3746, allocations: 137.1 kB / 1.224 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.3746, allocations: 25.7 kB / 1.225 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.987e-05/0.3747, allocations: 112.1 kB / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.3747, allocations: 15.91 kB / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.926e-05/0.3747, allocations: 17.7 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3749, allocations: 318.8 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.099e-05/0.375, allocations: 23.98 kB / 1.225 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.414e-05/0.3751, allocations: 41.69 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.3752, allocations: 52.8 kB / 1.225 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3752, allocations: 0 / 1.225 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002229/0.3754, allocations: 93.61 kB / 1.225 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.3755, allocations: 5.875 kB / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3755, allocations: 0 / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3755, allocations: 0 / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.3756, allocations: 12.17 kB / 1.225 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.3756, allocations: 7.984 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.549e-05/0.3757, allocations: 19.92 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.3757, allocations: 3.938 kB / 1.225 GB, free: 8.801 MB / 0.9825 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.0001093/0.3758, allocations: 119.4 kB / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.3758, allocations: 7.953 kB / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.714e-05/0.3759, allocations: 16.23 kB / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3759, allocations: 0 / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3759, allocations: 3.938 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3759, allocations: 4 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.3761, allocations: 189.6 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3761, allocations: 3.984 kB / 1.226 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.847e-05/0.3762, allocations: 4 kB / 1.226 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.3762, allocations: 4 kB / 1.226 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.3762, allocations: 3.984 kB / 1.226 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3762, allocations: 3.938 kB / 1.226 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3762, allocations: 0 / 1.226 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002378/0.3765, allocations: 183.4 kB / 1.226 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.166e-05/0.3765, allocations: 81.06 kB / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.3765, allocations: 8 kB / 1.226 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.3766, allocations: 7.984 kB / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-05/0.3767, allocations: 11.92 kB / 1.226 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.365e-06/0.3767, allocations: 4 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.75e-05/0.3768, allocations: 103.2 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of sort global known variables: time 5e-08/0.3768, allocations: 0 / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002326/0.377, allocations: 16 kB / 1.226 GB, free: 7.945 MB / 0.9825 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.0001393/0.3771, allocations: 99.25 kB / 1.226 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002264/0.3774, allocations: 51.95 kB / 1.226 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3774, allocations: 0 / 1.226 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.809e-05/0.3775, allocations: 31.92 kB / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.3778, allocations: 0 / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000488/0.3783, allocations: 190.8 kB / 1.226 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/0.3787, allocations: 0.6885 MB / 1.227 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.201e-05/0.3788, allocations: 12.36 kB / 1.227 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.857e-05/0.3788, allocations: 7.438 kB / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of SimCode: time 6.71e-07/0.3788, allocations: 4 kB / 1.227 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of Templates: time 0.00379/0.3826, allocations: 0.8802 MB / 1.228 GB, free: 5.938 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches