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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 112.2 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 190.6 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 225.6 MB / 249.3 MB, free: 3.18 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.478/2.478, allocations: 476.7 MB / 0.7628 GB, free: 15.18 MB / 0.6075 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 71.89 kB / 1.107 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.728/0.7297, allocations: 168.7 MB / 1.271 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002181/0.7319, allocations: 1.715 MB / 1.273 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0005496/0.7324, allocations: 447.1 kB / 1.273 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.035e-05/0.7325, allocations: 5.656 kB / 1.273 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.991e-05/0.7325, allocations: 5.203 kB / 1.273 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.425e-05/0.7326, allocations: 15.48 kB / 1.274 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001458/0.7327, allocations: 32.41 kB / 1.274 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.873e-05/0.7328, allocations: 81.12 kB / 1.274 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.133e-05/0.7329, allocations: 19.81 kB / 1.274 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.531e-05/0.733, allocations: 45.48 kB / 1.274 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.326e-05/0.7331, allocations: 38.91 kB / 1.274 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.7331, allocations: 7 kB / 1.274 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.798e-05/0.7331, allocations: 10.88 kB / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/0.7331, allocations: 13.84 kB / 1.274 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.681e-05/0.7332, allocations: 35.66 kB / 1.274 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.7333, allocations: 83.03 kB / 1.274 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.7333, allocations: 0 / 1.274 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.042e-06/0.7333, allocations: 0 / 1.274 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.976e-06/0.7333, allocations: 1.156 kB / 1.274 GB, free: 6.047 MB / 0.9981 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.0003944/0.7337, allocations: 392.9 kB / 1.274 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.7337, allocations: 13.53 kB / 1.274 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.767e-05/0.7337, allocations: 34.44 kB / 1.274 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.7338, allocations: 17.23 kB / 1.274 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.401e-05/0.7338, allocations: 178.5 kB / 1.274 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.263e-06/0.7339, allocations: 2.281 kB / 1.274 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.7339, allocations: 3.281 kB / 1.274 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.734, allocations: 97.34 kB / 1.275 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.734, allocations: 0 / 1.275 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.7341, allocations: 9.406 kB / 1.275 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.7341, allocations: 0.875 kB / 1.275 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.7342, allocations: 45.72 kB / 1.275 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003353/0.7345, allocations: 333.5 kB / 1.275 GB, free: 5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.7346, allocations: 51.55 kB / 1.275 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.094e-05/0.7347, allocations: 28.98 kB / 1.275 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.7347, allocations: 1.062 kB / 1.275 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.7347, allocations: 32.31 kB / 1.275 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.7347, allocations: 0 / 1.275 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0003031/0.7351, allocations: 105 kB / 1.275 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.7351, allocations: 82.39 kB / 1.275 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.963e-05/0.7351, allocations: 131.7 kB / 1.275 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.7352, allocations: 31.23 kB / 1.275 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.082e-05/0.7352, allocations: 99.95 kB / 1.275 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.7352, allocations: 9.75 kB / 1.275 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.392e-05/0.7352, allocations: 20.12 kB / 1.275 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.329e-05/0.7353, allocations: 323.4 kB / 1.276 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.4e-05/0.7353, allocations: 26.03 kB / 1.276 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-05/0.7354, allocations: 36.91 kB / 1.276 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.7355, allocations: 48.41 kB / 1.276 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.7355, allocations: 0 / 1.276 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000167/0.7357, allocations: 88.11 kB / 1.276 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.7357, allocations: 9.375 kB / 1.276 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.7357, allocations: 4.609 kB / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.7357, allocations: 1.188 kB / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.869e-05/0.7358, allocations: 11.55 kB / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.7358, allocations: 0 / 1.276 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.389e-05/0.7359, allocations: 21.64 kB / 1.276 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.7359, allocations: 1.344 kB / 1.276 GB, free: 4.047 MB / 0.9981 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 5.018e-05/0.736, allocations: 116.3 kB / 1.276 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.736, allocations: 11.52 kB / 1.276 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.403e-05/0.736, allocations: 10.95 kB / 1.276 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.736, allocations: 0.7188 kB / 1.276 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.736, allocations: 0.6875 kB / 1.276 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.736, allocations: 5.25 kB / 1.276 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.7361, allocations: 182.8 kB / 1.276 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7361, allocations: 1 kB / 1.276 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.658e-05/0.7362, allocations: 13.72 kB / 1.276 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.7362, allocations: 0.5938 kB / 1.276 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.7362, allocations: 13.91 kB / 1.276 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.7362, allocations: 4 kB / 1.276 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.7362, allocations: 4.562 kB / 1.276 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.7364, allocations: 180.1 kB / 1.277 GB, free: 3.531 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.704e-05/0.7364, allocations: 83.81 kB / 1.277 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.7364, allocations: 0.8438 kB / 1.277 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.7365, allocations: 9.328 kB / 1.277 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.7366, allocations: 19.86 kB / 1.277 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-06/0.7366, allocations: 4.969 kB / 1.277 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.796e-05/0.7366, allocations: 94.8 kB / 1.277 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.7366, allocations: 0 / 1.277 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002107/0.7368, allocations: 14.94 kB / 1.277 GB, free: 3.34 MB / 0.9981 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.0003127/0.7371, allocations: 0.7126 MB / 1.277 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001843/0.7373, allocations: 51.98 kB / 1.278 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7373, allocations: 0 / 1.278 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.42e-05/0.7374, allocations: 33.05 kB / 1.278 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.7376, allocations: 8.312 kB / 1.278 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.7388, allocations: 1.454 MB / 1.279 GB, free: 17.35 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.739, allocations: 0.6878 MB / 1.28 GB, free: 16.65 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.7391, allocations: 4.094 kB / 1.28 GB, free: 16.65 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.518e-05/0.7391, allocations: 23.73 kB / 1.28 GB, free: 16.64 MB / 1.014 GB Notification: Performance of SimCode: time 3e-07/0.7391, allocations: 4.844 kB / 1.28 GB, free: 16.63 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.7622, allocations: 2.046 MB / 1.282 GB, free: 16.22 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.895/7.657, allocations: 10.58 kB / 1.282 GB, free: 16.21 MB / 1.014 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 420.0] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,chiSwi.TSet,chiSwi.chiCHWST,chiSwi.y Variables in the result:CHWST.amplitude,CHWST.f,CHWST.offset,CHWST.phase,CHWST.startTime,CHWST.y,TSet.amplitude,TSet.f,TSet.offset,TSet.phase,TSet.startTime,TSet.y,chiSwi.TSet,chiSwi.add.k1,chiSwi.add.k2,chiSwi.add.u1,chiSwi.add.u2,chiSwi.add.y,chiSwi.chiCHWST,chiSwi.deaBan,chiSwi.hysteresis.pre_y_start,chiSwi.hysteresis.u,chiSwi.hysteresis.uHigh,chiSwi.hysteresis.uLow,chiSwi.hysteresis.y,chiSwi.y,time [Calling sys.exit(0), Time elapsed: 12.828806278999764]