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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_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.00464/0.00464, allocations: 102.7 kB / 15.74 MB, free: 6.488 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.001137/0.001137, allocations: 193.5 kB / 16.68 MB, free: 6.367 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.55/2.55, allocations: 437 MB / 0.7105 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2506, allocations: 151.6 MB / 1.166 GB, free: 7.348 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002685/0.2533, allocations: 1.671 MB / 1.168 GB, free: 5.652 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007412/0.254, allocations: 458.9 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.65e-05/0.2541, allocations: 0 / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.5e-05/0.2542, allocations: 3.938 kB / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.14e-05/0.2543, allocations: 19.8 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.2545, allocations: 27.95 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.2546, allocations: 83.72 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.2547, allocations: 23.98 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.2548, allocations: 35.84 kB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.385e-05/0.2549, allocations: 39.78 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.2549, allocations: 8 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.555e-05/0.255, allocations: 8 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.452e-05/0.255, allocations: 15.98 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.049e-05/0.255, allocations: 39.8 kB / 1.169 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.2552, allocations: 83.84 kB / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2552, allocations: 0 / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2552, allocations: 4 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.2552, allocations: 0 / 1.169 GB, free: 4.812 MB / 0.92 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.0005189/0.2557, allocations: 391.1 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2558, allocations: 12.02 kB / 1.169 GB, free: 4.371 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.2558, allocations: 38.75 kB / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.522e-05/0.2559, allocations: 12.83 kB / 1.169 GB, free: 4.312 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.256, allocations: 180.3 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.256, allocations: 384 / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.256, allocations: 8.375 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.2563, allocations: 99.36 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.2563, allocations: 0 / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.2563, allocations: 4 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.2563, allocations: 8 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001641/0.2565, allocations: 39.97 kB / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000468/0.257, allocations: 336.6 kB / 1.17 GB, free: 3.551 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.2571, allocations: 50.56 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.546e-05/0.2572, allocations: 28.94 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.2572, allocations: 0 / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.2573, allocations: 30.56 kB / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.2573, allocations: 4 kB / 1.17 GB, free: 3.418 MB / 0.92 GB Notification: Performance of matching and sorting (n=4): time 0.0003469/0.2576, allocations: 105.6 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.2577, allocations: 81.11 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.811e-05/0.2578, allocations: 135.9 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.2578, allocations: 25.7 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.195e-05/0.2579, allocations: 100.1 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.2579, allocations: 19.84 kB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.2579, allocations: 17.7 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.754e-05/0.258, allocations: 318.8 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.276e-05/0.2581, allocations: 27.98 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.426e-05/0.2582, allocations: 37.7 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.2584, allocations: 48.95 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2584, allocations: 0 / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000205/0.2586, allocations: 93.59 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2586, allocations: 4 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2586, allocations: 32 / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2586, allocations: 4 kB / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.2587, allocations: 11.98 kB / 1.171 GB, free: 2.332 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2588, allocations: 0 / 1.171 GB, free: 2.332 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.59e-05/0.2588, allocations: 19.88 kB / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.2589, allocations: 0 / 1.171 GB, free: 2.312 MB / 0.92 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 7.932e-05/0.2589, allocations: 113.8 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.379e-05/0.259, allocations: 7.953 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.259, allocations: 16.25 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.259, allocations: 0 / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.259, allocations: 0 / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.259, allocations: 3.938 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/0.2592, allocations: 189.6 kB / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2592, allocations: 0 / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.814e-05/0.2593, allocations: 15.92 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2593, allocations: 3.938 kB / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.2593, allocations: 0 / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2594, allocations: 0 / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2594, allocations: 0 / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.2596, allocations: 183.4 kB / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.796e-05/0.2596, allocations: 81.09 kB / 1.171 GB, free: 1.613 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.2597, allocations: 4 kB / 1.171 GB, free: 1.609 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.2598, allocations: 11.98 kB / 1.171 GB, free: 1.598 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.2598, allocations: 7.984 kB / 1.171 GB, free: 1.59 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.2599, allocations: 11.88 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.632e-05/0.2599, allocations: 105.9 kB / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2599, allocations: 0 / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000245/0.2602, allocations: 15.95 kB / 1.172 GB, free: 1.461 MB / 0.92 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.0004747/0.2607, allocations: 0.7243 MB / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002093/0.2609, allocations: 56.02 kB / 1.172 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2609, allocations: 0 / 1.172 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.921e-05/0.261, allocations: 27.92 kB / 1.172 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.2613, allocations: 11.94 kB / 1.172 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.2627, allocations: 1.44 MB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.263, allocations: 0.6885 MB / 1.174 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.071e-05/0.263, allocations: 4 kB / 1.174 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.11e-05/0.2631, allocations: 27.42 kB / 1.174 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.2631, allocations: 3.938 kB / 1.174 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.2812, allocations: 2.074 MB / 1.176 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.279/7.56, allocations: 15.56 kB / 1.176 GB, free: 12.41 MB / 0.9356 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/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