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.001463/0.001463, 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.001717/0.001717, allocations: 195.5 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.463/2.463, allocations: 469.8 MB / 0.7424 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001677, allocations: 61.78 kB / 0.9087 GB, free: 34.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2311, allocations: 159.2 MB / 1.064 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002651/0.2338, allocations: 1.686 MB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006734/0.2345, allocations: 442.9 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.196e-05/0.2345, allocations: 0 / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.874e-05/0.2346, allocations: 11.86 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.149e-05/0.2347, allocations: 19.86 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000142/0.2348, allocations: 23.91 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.2349, allocations: 79.78 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.235, allocations: 31.97 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.486e-05/0.2351, allocations: 39.8 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.991e-05/0.2352, allocations: 35.84 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.2352, allocations: 8 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.609e-05/0.2352, allocations: 8 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.795e-05/0.2353, allocations: 15.92 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.661e-05/0.2353, allocations: 47.72 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.2354, allocations: 75.98 kB / 1.067 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.2354, allocations: 0 / 1.067 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2355, allocations: 0 / 1.067 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.2355, allocations: 0 / 1.067 GB, free: 11.69 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.0004899/0.236, allocations: 395.1 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.236, allocations: 12.03 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.76e-05/0.236, allocations: 34.75 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.2361, allocations: 8.844 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.2362, allocations: 185.9 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.2362, allocations: 4.375 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.2363, allocations: 8.375 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.2364, allocations: 91.44 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.2365, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.2365, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2365, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.2366, allocations: 55.91 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.2371, allocations: 328.6 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.2372, allocations: 46.56 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.711e-05/0.2373, allocations: 36.92 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.2373, allocations: 0 / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.2373, allocations: 38.58 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 7.31e-07/0.2374, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.000314/0.2377, allocations: 101.6 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.2377, allocations: 77.11 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.2378, allocations: 135.5 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2379, allocations: 25.7 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.2379, allocations: 104 kB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.2379, allocations: 7.906 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.26e-05/0.238, allocations: 21.7 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.2381, allocations: 322.7 kB / 1.068 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.564e-05/0.2382, allocations: 23.98 kB / 1.069 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.101e-05/0.2383, allocations: 45.69 kB / 1.069 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.2384, allocations: 52.89 kB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2384, allocations: 0 / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001851/0.2386, allocations: 89.58 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.2386, allocations: 4 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.2386, allocations: 0 / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.2387, allocations: 4.031 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.067e-05/0.2388, allocations: 11.98 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.2388, allocations: 0 / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.376e-05/0.2388, allocations: 15.92 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.2389, allocations: 0 / 1.069 GB, free: 9.199 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.551e-05/0.2389, allocations: 117.8 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.968e-05/0.239, allocations: 7.906 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.239, allocations: 16.23 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.239, allocations: 4 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.239, allocations: 0 / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.239, allocations: 3.938 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.2392, allocations: 189.6 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2392, allocations: 3.984 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.68e-05/0.2393, allocations: 4 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2393, allocations: 3.938 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.2393, allocations: 7.984 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2393, allocations: 0 / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2393, allocations: 0 / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002189/0.2396, allocations: 183.4 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.2396, allocations: 84.95 kB / 1.069 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.2396, allocations: 4 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.596e-05/0.2397, allocations: 11.98 kB / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/0.2398, allocations: 7.984 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.2398, allocations: 12 kB / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.31e-05/0.2399, allocations: 107.2 kB / 1.069 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2399, allocations: 0 / 1.069 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002044/0.2401, allocations: 8 kB / 1.069 GB, free: 8.34 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.0004881/0.2406, allocations: 0.717 MB / 1.07 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001903/0.2408, allocations: 59.94 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2408, allocations: 0 / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.352e-05/0.2409, allocations: 23.98 kB / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.2411, allocations: 15.88 kB / 1.07 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.2425, allocations: 1.433 MB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.2428, allocations: 0.6924 MB / 1.072 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.953e-05/0.2428, allocations: 7.984 kB / 1.072 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.2429, allocations: 19.44 kB / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.2429, allocations: 0 / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9563/1.199, allocations: 2.028 MB / 1.074 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/12.44, allocations: 16.3 kB / 1.074 GB, free: 3.332 MB / 0.8262 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 & /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)