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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005309/0.005309, allocations: 98.95 kB / 15.73 MB, free: 6.055 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.001533/0.001533, allocations: 202.9 kB / 16.68 MB, free: 5.977 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.796/2.796, allocations: 469.8 MB / 0.7425 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 63.91 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2933, allocations: 159.1 MB / 1.22 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00408/0.2974, allocations: 1.679 MB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.2985, allocations: 447 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.734e-05/0.2986, allocations: 4 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.932e-05/0.2986, allocations: 11.81 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.044e-05/0.2987, allocations: 7.875 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.2989, allocations: 27.91 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001617/0.2991, allocations: 87.75 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.2993, allocations: 27.98 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.2994, allocations: 35.86 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.2995, allocations: 39.83 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.2996, allocations: 4 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.43e-05/0.2996, allocations: 8 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.2996, allocations: 19.92 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.763e-05/0.2997, allocations: 39.73 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.2999, allocations: 87.69 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2999, allocations: 0 / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2999, allocations: 0 / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.3, allocations: 0 / 1.223 GB, free: 11.8 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.0007168/0.3007, allocations: 391 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3007, allocations: 8.031 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.579e-05/0.3008, allocations: 42.73 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.572e-05/0.3009, allocations: 8.891 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.3011, allocations: 180.2 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.3011, allocations: 4.375 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.3011, allocations: 8.312 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.3014, allocations: 95.44 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3015, allocations: 0 / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.3015, allocations: 11.98 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3015, allocations: 0 / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002504/0.3018, allocations: 51.97 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006377/0.3024, allocations: 324.7 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.3026, allocations: 50.66 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.3028, allocations: 28.88 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.3028, allocations: 4 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.3028, allocations: 38.55 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.423e-06/0.3029, allocations: 0 / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0004969/0.3034, allocations: 101.6 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.3034, allocations: 77.11 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.3036, allocations: 135.6 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.3037, allocations: 33.7 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.3038, allocations: 104.1 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.3038, allocations: 11.91 kB / 1.224 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.814e-05/0.3039, allocations: 17.72 kB / 1.224 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000179/0.3041, allocations: 322.8 kB / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.3042, allocations: 27.92 kB / 1.225 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.3044, allocations: 41.7 kB / 1.225 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.3046, allocations: 44.83 kB / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3046, allocations: 0 / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003269/0.305, allocations: 85.62 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.305, allocations: 7.984 kB / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.305, allocations: 0 / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.305, allocations: 4 kB / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.3052, allocations: 11.97 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3052, allocations: 0 / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.3053, allocations: 19.86 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.3054, allocations: 0 / 1.225 GB, free: 9.297 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.0001269/0.3055, allocations: 122.4 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.3056, allocations: 3.953 kB / 1.225 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.984e-05/0.3056, allocations: 16.19 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3056, allocations: 0 / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3056, allocations: 192 / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.3056, allocations: 7.938 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003214/0.306, allocations: 193.6 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.306, allocations: 0 / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.3061, allocations: 11.98 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.3061, allocations: 3.938 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3061, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3061, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3061, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/0.3065, allocations: 187.3 kB / 1.225 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.3066, allocations: 85.06 kB / 1.225 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.996e-05/0.3066, allocations: 4 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.3068, allocations: 11.98 kB / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.773e-05/0.3069, allocations: 7.984 kB / 1.225 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.3069, allocations: 7.922 kB / 1.225 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.543e-05/0.307, allocations: 102.6 kB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.01e-07/0.307, allocations: 4 kB / 1.226 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000453/0.3075, allocations: 12 kB / 1.226 GB, free: 8.438 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.0007841/0.3083, allocations: 0.7163 MB / 1.226 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003314/0.3086, allocations: 52.25 kB / 1.226 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3086, allocations: 4 kB / 1.226 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.3088, allocations: 27.97 kB / 1.226 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.3093, allocations: 9.062 kB / 1.226 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/0.3114, allocations: 1.436 MB / 1.228 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.3118, allocations: 0.6963 MB / 1.228 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.339e-05/0.3118, allocations: 4.234 kB / 1.228 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.325e-05/0.3119, allocations: 23.44 kB / 1.228 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.3119, allocations: 0 / 1.228 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.3326, allocations: 2.081 MB / 1.23 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/8.038, allocations: 7.859 kB / 1.23 GB, free: 3.402 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv","/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) Reference file matches