Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001526/0.001526, allocations: 108 kB / 15.61 MB, free: 152 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.001759/0.001759, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.66/2.66, allocations: 437 MB / 0.7103 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 63.89 kB / 0.8692 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7255/0.7271, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.004799/0.732, allocations: 1.667 MB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009771/0.733, allocations: 454.9 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.7332, allocations: 0 / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.278e-05/0.7332, allocations: 3.938 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.7334, allocations: 31.72 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.7336, allocations: 23.97 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001404/0.7338, allocations: 79.72 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.7339, allocations: 19.98 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.7341, allocations: 43.84 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.959e-05/0.7342, allocations: 35.84 kB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.7342, allocations: 8 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 2.393e-05/0.7343, allocations: 8 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.899e-05/0.7343, allocations: 15.92 kB / 1.02 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.208e-05/0.7344, allocations: 43.78 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.7345, allocations: 77.73 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.7345, allocations: 0 / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.595e-06/0.7346, allocations: 0 / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.7346, allocations: 0 / 1.02 GB, free: 8 kB / 0.7637 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.0007165/0.7353, allocations: 391.1 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.7353, allocations: 12.03 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.822e-05/0.7354, allocations: 8.844 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001983/0.7356, allocations: 188 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.7356, allocations: 8.375 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.7357, allocations: 384 / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.7359, allocations: 91.69 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.7359, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.736, allocations: 8 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.736, allocations: 0 / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.7362, allocations: 51.91 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006044/0.7368, allocations: 328.6 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.7369, allocations: 54.58 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.321e-05/0.737, allocations: 32.94 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.7371, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.7371, allocations: 34.5 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.7371, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003719/0.7375, allocations: 109.6 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/0.7376, allocations: 81.11 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.7377, allocations: 128 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.7377, allocations: 33.69 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.666e-05/0.7378, allocations: 92.14 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.7379, allocations: 11.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-05/0.7379, allocations: 17.72 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.7381, allocations: 330.8 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-05/0.7382, allocations: 23.98 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.189e-05/0.7383, allocations: 37.7 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.7384, allocations: 48.83 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.7384, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002034/0.7386, allocations: 89.55 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.7387, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.7387, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.7387, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.7388, allocations: 7.984 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.7388, allocations: 4 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.015e-05/0.7389, allocations: 15.86 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.7389, allocations: 11.94 kB / 1.022 GB, free: 13.55 MB / 0.7794 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.0001176/0.7391, allocations: 118.5 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.34e-05/0.7391, allocations: 7.906 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.375e-05/0.7391, allocations: 12.23 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.7391, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.7391, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.7392, allocations: 4 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.7394, allocations: 185.6 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.7394, allocations: 0 / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.045e-05/0.7395, allocations: 8 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.7395, allocations: 7.984 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.7395, allocations: 192 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.7395, allocations: 7.938 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.7395, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.7398, allocations: 179.4 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.592e-05/0.7398, allocations: 85.05 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.7398, allocations: 0 / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.74, allocations: 15.98 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.062e-05/0.74, allocations: 11.98 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.74, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.905e-05/0.7401, allocations: 100.5 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.7401, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002314/0.7404, allocations: 19.91 kB / 1.023 GB, free: 12.71 MB / 0.7794 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.0001412/0.7405, allocations: 103.2 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002478/0.7408, allocations: 59.91 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.7408, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.893e-05/0.7409, allocations: 27.98 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.7412, allocations: 0 / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005228/0.7418, allocations: 195.1 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.7422, allocations: 0.6885 MB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.281e-05/0.7422, allocations: 8.312 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.7423, allocations: 11.44 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.7423, allocations: 0 / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of Templates: time 0.004016/0.7463, allocations: 0.8763 MB / 1.025 GB, free: 10.7 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches