Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_8_0_x_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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.743/1.743, allocations: 288.2 MB / 303.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001231/0.001231, allocations: 178 kB / 371.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 0.6305 GB, free: 9.996 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 98.83 kB / 0.7439 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004737/0.000474, allocations: 11.28 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2678, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00197/0.2698, allocations: 1.358 MB / 0.9808 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008242/0.2707, allocations: 463.9 kB / 0.9813 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.758e-05/0.2708, allocations: 4 kB / 0.9813 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.893e-05/0.2708, allocations: 3.938 kB / 0.9813 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.271, allocations: 11.98 kB / 0.9813 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.2712, allocations: 23.95 kB / 0.9813 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.2713, allocations: 47.88 kB / 0.9813 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.2714, allocations: 27.92 kB / 0.9814 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.2716, allocations: 23.92 kB / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.2717, allocations: 35.83 kB / 0.9814 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.2717, allocations: 4 kB / 0.9814 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.648e-05/0.2717, allocations: 0 / 0.9814 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.339e-05/0.2717, allocations: 11.92 kB / 0.9814 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.126e-05/0.2718, allocations: 37.64 kB / 0.9815 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.2719, allocations: 60.09 kB / 0.9815 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2719, allocations: 0 / 0.9815 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.924e-06/0.2719, allocations: 0 / 0.9815 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.2719, allocations: 0 / 0.9815 GB, free: 25.46 MB / 0.6198 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.000536/0.2725, allocations: 383.8 kB / 0.9819 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.2725, allocations: 8.031 kB / 0.9819 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.894e-05/0.2726, allocations: 42.55 kB / 0.982 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.2726, allocations: 11.84 kB / 0.982 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.2728, allocations: 174.9 kB / 0.9821 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.2728, allocations: 8 kB / 0.9821 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.2728, allocations: 4 kB / 0.9821 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.2731, allocations: 95.3 kB / 0.9822 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2731, allocations: 0 / 0.9822 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.2731, allocations: 4 kB / 0.9822 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2731, allocations: 4 kB / 0.9822 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.2733, allocations: 59.95 kB / 0.9823 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005382/0.2738, allocations: 332.6 kB / 0.9826 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.274, allocations: 50.56 kB / 0.9827 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.274, allocations: 4 kB / 0.9827 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.2741, allocations: 30.56 kB / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 1.984e-06/0.2741, allocations: 96 / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0003636/0.2744, allocations: 125.5 kB / 0.9828 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.2745, allocations: 77.11 kB / 0.9829 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.4e-05/0.2746, allocations: 127.9 kB / 0.983 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.2746, allocations: 33.64 kB / 0.983 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.81e-05/0.2747, allocations: 108 kB / 0.9831 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.2747, allocations: 7.906 kB / 0.9832 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-06/0.2747, allocations: 0 / 0.9832 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.493e-05/0.2748, allocations: 318.8 kB / 0.9835 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.63e-05/0.2748, allocations: 27.98 kB / 0.9835 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.882e-05/0.2749, allocations: 45.7 kB / 0.9835 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.685e-05/0.275, allocations: 27.92 kB / 0.9836 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.275, allocations: 0 / 0.9836 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000186/0.2752, allocations: 93.8 kB / 0.9836 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.2752, allocations: 10.03 kB / 0.9837 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2752, allocations: 4 kB / 0.9837 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.2753, allocations: 3.953 kB / 0.9837 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.2754, allocations: 15.98 kB / 0.9837 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.2754, allocations: 0 / 0.9837 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.14e-05/0.2755, allocations: 15.98 kB / 0.9837 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.2755, allocations: 4 kB / 0.9837 GB, free: 23.01 MB / 0.6198 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 ($PRE.chiSwi.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.132e-05/0.2756, allocations: 113.8 kB / 0.9838 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.2757, allocations: 11.84 kB / 0.9838 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/0.2757, allocations: 16.23 kB / 0.9838 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.2757, allocations: 0 / 0.9838 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2757, allocations: 7.891 kB / 0.9838 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2757, allocations: 0 / 0.9838 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.2759, allocations: 193.6 kB / 0.984 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2759, allocations: 0 / 0.984 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-05/0.276, allocations: 15.98 kB / 0.984 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.276, allocations: 0 / 0.984 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.276, allocations: 0 / 0.984 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.276, allocations: 0 / 0.984 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.276, allocations: 4 kB / 0.984 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.2763, allocations: 187.4 kB / 0.9842 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.245e-05/0.2763, allocations: 85.02 kB / 0.9843 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.2763, allocations: 0 / 0.9843 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.2764, allocations: 15.98 kB / 0.9843 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.896e-05/0.2765, allocations: 11.98 kB / 0.9843 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.2765, allocations: 3.984 kB / 0.9843 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.915e-05/0.2766, allocations: 111.6 kB / 0.9844 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2766, allocations: 4 kB / 0.9844 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002276/0.2768, allocations: 16 kB / 0.9845 GB, free: 22.13 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004615/0.2773, allocations: 0.7204 MB / 0.9852 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.2775, allocations: 59.91 kB / 0.9852 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2775, allocations: 0 / 0.9852 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.658e-05/0.2776, allocations: 39.97 kB / 0.9853 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.2779, allocations: 4 kB / 0.9853 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009584/0.2789, allocations: 0.5829 MB / 0.9858 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.279, allocations: 0.6926 MB / 0.9865 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.274e-05/0.2791, allocations: 8 kB / 0.9865 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.246e-05/0.2792, allocations: 23.42 kB / 0.9865 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of SimCode: time 7.62e-07/0.2792, allocations: 0 / 0.9865 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.2937, allocations: 1.715 MB / 0.9882 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/0.2939, allocations: 226 kB / 0.9884 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.024, allocations: 0 / 0.9884 GB, free: 18.17 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)