Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_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.00114/0.001141, allocations: 109.4 kB / 15.69 MB, free: 128 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.00125/0.00125, allocations: 189.5 kB / 16.62 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.721/1.721, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 73.78 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2619, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003147/0.2651, allocations: 1.673 MB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007716/0.2659, allocations: 488.8 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.645e-05/0.2659, allocations: 0 / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.682e-05/0.266, allocations: 7.922 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.173e-05/0.2661, allocations: 19.8 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.2663, allocations: 23.97 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.2664, allocations: 91.72 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.2665, allocations: 24.27 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.788e-05/0.2666, allocations: 39.78 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.871e-05/0.2667, allocations: 35.83 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.2667, allocations: 8 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.977e-05/0.2668, allocations: 8 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.052e-05/0.2668, allocations: 11.94 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.378e-05/0.2668, allocations: 43.8 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.267, allocations: 87.62 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.267, allocations: 0 / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.342e-06/0.267, allocations: 0 / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.856e-06/0.267, allocations: 4 kB / 0.7861 GB, free: 10.68 MB / 0.6075 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.0005315/0.2675, allocations: 387.1 kB / 0.7865 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2676, allocations: 12.03 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.2676, allocations: 34.69 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.2677, allocations: 12.84 kB / 0.7866 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.2678, allocations: 184.2 kB / 0.7867 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.2678, allocations: 4.375 kB / 0.7867 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.2679, allocations: 4.375 kB / 0.7867 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.2681, allocations: 99.44 kB / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2681, allocations: 0 / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.2681, allocations: 0 / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.2681, allocations: 4 kB / 0.7868 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001448/0.2683, allocations: 47.97 kB / 0.7869 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004701/0.2687, allocations: 328.6 kB / 0.7872 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.2689, allocations: 50.55 kB / 0.7872 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.504e-05/0.269, allocations: 32.94 kB / 0.7873 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.269, allocations: 0 / 0.7873 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.269, allocations: 30.56 kB / 0.7873 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.269, allocations: 4 kB / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003234/0.2694, allocations: 105.8 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.2694, allocations: 81.09 kB / 0.7875 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.2695, allocations: 126.1 kB / 0.7876 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.2695, allocations: 29.7 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.2696, allocations: 104 kB / 0.7877 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.2696, allocations: 7.906 kB / 0.7877 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-05/0.2697, allocations: 25.64 kB / 0.7878 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.2698, allocations: 322.8 kB / 0.7881 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.394e-05/0.2699, allocations: 23.98 kB / 0.7881 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.499e-05/0.2699, allocations: 37.7 kB / 0.7881 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.2701, allocations: 52.77 kB / 0.7882 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2701, allocations: 0 / 0.7882 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001872/0.2703, allocations: 89.52 kB / 0.7883 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2703, allocations: 4.938 kB / 0.7883 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2703, allocations: 0 / 0.7883 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.2703, allocations: 4.031 kB / 0.7883 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.509e-05/0.2704, allocations: 11.98 kB / 0.7883 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.2704, allocations: 0 / 0.7883 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.802e-05/0.2705, allocations: 19.92 kB / 0.7883 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-06/0.2705, allocations: 0 / 0.7883 GB, free: 8.199 MB / 0.6075 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.179e-05/0.2706, allocations: 114.5 kB / 0.7884 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.922e-05/0.2707, allocations: 7.906 kB / 0.7884 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.2707, allocations: 16.23 kB / 0.7884 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2707, allocations: 4 kB / 0.7884 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2707, allocations: 192 / 0.7884 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.2707, allocations: 3.938 kB / 0.7884 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.2709, allocations: 189.6 kB / 0.7886 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2709, allocations: 0 / 0.7886 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.359e-05/0.271, allocations: 7.938 kB / 0.7886 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.271, allocations: 4 kB / 0.7886 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.271, allocations: 3.984 kB / 0.7886 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.271, allocations: 0 / 0.7886 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.271, allocations: 0 / 0.7886 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.2712, allocations: 187.4 kB / 0.7888 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.2713, allocations: 84.95 kB / 0.7889 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.2713, allocations: 4 kB / 0.7889 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.942e-05/0.2714, allocations: 7.984 kB / 0.7889 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.2715, allocations: 11.98 kB / 0.7889 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.2715, allocations: 7.938 kB / 0.7889 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.189e-05/0.2716, allocations: 102.2 kB / 0.789 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2716, allocations: 0 / 0.789 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002165/0.2718, allocations: 16 kB / 0.789 GB, free: 7.344 MB / 0.6075 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.0004783/0.2723, allocations: 0.7123 MB / 0.7897 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001985/0.2725, allocations: 51.97 kB / 0.7898 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2725, allocations: 0 / 0.7898 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.001e-05/0.2726, allocations: 31.92 kB / 0.7898 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.2729, allocations: 18.25 kB / 0.7898 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.2744, allocations: 1.442 MB / 0.7912 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.2746, allocations: 0.6924 MB / 0.7919 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.143e-05/0.2747, allocations: 8.109 kB / 0.7919 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.677e-05/0.2747, allocations: 23.42 kB / 0.792 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.2747, allocations: 0 / 0.792 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.2919, allocations: 2.061 MB / 0.794 GB, free: 2.316 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.988/7.28, allocations: 10.5 kB / 0.794 GB, free: 2.309 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)