Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001078, allocations: 108 kB / 15.61 MB, free: 148 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.001056/0.001056, allocations: 196.8 kB / 16.53 MB, free: 6.656 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.623/2.623, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 62.7 kB / 0.9083 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2542, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002866/0.2571, allocations: 1.682 MB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007182/0.2578, allocations: 442.9 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.218e-05/0.2579, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.824e-05/0.258, allocations: 11.86 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.595e-05/0.2581, allocations: 15.86 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.2582, allocations: 27.91 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.2584, allocations: 79.78 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.2585, allocations: 31.89 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.2586, allocations: 39.92 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.832e-05/0.2587, allocations: 35.84 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.2587, allocations: 8 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.765e-05/0.2587, allocations: 8 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.678e-05/0.2588, allocations: 19.91 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.399e-05/0.2588, allocations: 35.8 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.2589, allocations: 79.97 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.259, allocations: 0 / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.363e-06/0.259, allocations: 3.938 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.259, allocations: 0 / 1.066 GB, free: 11.99 MB / 0.8262 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.0004959/0.2595, allocations: 399.1 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2595, allocations: 8.031 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.638e-05/0.2596, allocations: 38.75 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.554e-05/0.2596, allocations: 8.844 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.2597, allocations: 176.2 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.2598, allocations: 4.375 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.2598, allocations: 8.375 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.26, allocations: 99.38 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.26, allocations: 0 / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.26, allocations: 4 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.26, allocations: 3.938 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.2602, allocations: 43.97 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004462/0.2606, allocations: 332.6 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.2608, allocations: 50.56 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.046e-05/0.2609, allocations: 24.94 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.2609, allocations: 3.984 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2609, allocations: 34.56 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.332e-06/0.2609, allocations: 0 / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0003275/0.2613, allocations: 105.6 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.2613, allocations: 77.11 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.518e-05/0.2614, allocations: 131.5 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.2614, allocations: 25.7 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.179e-05/0.2615, allocations: 104 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.2615, allocations: 15.91 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.2616, allocations: 17.7 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.365e-05/0.2617, allocations: 318.8 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.063e-05/0.2618, allocations: 23.98 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.886e-05/0.2619, allocations: 41.69 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.262, allocations: 52.8 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.262, allocations: 0 / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000202/0.2622, allocations: 93.7 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.2622, allocations: 5.875 kB / 1.068 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2623, allocations: 0 / 1.068 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.2623, allocations: 0 / 1.068 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.2624, allocations: 11.98 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.2624, allocations: 0 / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.453e-05/0.2625, allocations: 19.92 kB / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.2625, allocations: 0 / 1.068 GB, free: 9.504 MB / 0.8262 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 8.066e-05/0.2626, allocations: 118.3 kB / 1.068 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.2626, allocations: 7.906 kB / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.2626, allocations: 12.23 kB / 1.068 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2627, allocations: 4 kB / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.2627, allocations: 0 / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2627, allocations: 4.125 kB / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.2629, allocations: 185.6 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.2629, allocations: 15.97 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.263, allocations: 7.938 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.263, allocations: 0 / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.263, allocations: 11.92 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.263, allocations: 0 / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.263, allocations: 0 / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002257/0.2632, allocations: 179.4 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.2633, allocations: 85.02 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.2633, allocations: 4 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.2634, allocations: 11.98 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.961e-05/0.2635, allocations: 11.92 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.2635, allocations: 3.938 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.69e-05/0.2636, allocations: 108.3 kB / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2636, allocations: 0 / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002345/0.2638, allocations: 8 kB / 1.069 GB, free: 8.645 MB / 0.8262 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.0004646/0.2643, allocations: 0.7163 MB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002031/0.2645, allocations: 55.91 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2645, allocations: 0 / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.174e-05/0.2646, allocations: 27.98 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.2649, allocations: 15.66 kB / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.2663, allocations: 1.442 MB / 1.071 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.2665, allocations: 0.6885 MB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.264e-05/0.2666, allocations: 7.984 kB / 1.072 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.051e-05/0.2666, allocations: 15.44 kB / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2667, allocations: 0 / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.2842, allocations: 2.038 MB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.124/7.408, allocations: 8.359 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches