Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.229/1.229, allocations: 251.5 MB / 266.7 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008458/0.0008459, allocations: 163.8 kB / 325.8 MB, free: 2.742 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205 MB / 0.576 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007356/0.0007356, allocations: 100 kB / 0.6797 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 13.16 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1448, allocations: 105.4 MB / 0.8962 GB, free: 68.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001327/0.1462, allocations: 1.413 MB / 0.8976 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005053/0.1467, allocations: 488.2 kB / 0.8981 GB, free: 66.24 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.633e-05/0.1467, allocations: 0 / 0.8981 GB, free: 66.24 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.859e-05/0.1468, allocations: 3.938 kB / 0.8981 GB, free: 66.24 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.197e-05/0.1468, allocations: 23.84 kB / 0.8981 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001137/0.147, allocations: 19.98 kB / 0.8981 GB, free: 66.2 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.278e-05/0.147, allocations: 79.72 kB / 0.8982 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.088e-05/0.1471, allocations: 23.97 kB / 0.8982 GB, free: 66.09 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.793e-05/0.1472, allocations: 27.8 kB / 0.8982 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.995e-05/0.1473, allocations: 35.84 kB / 0.8983 GB, free: 66.03 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.1473, allocations: 7.938 kB / 0.8983 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.1473, allocations: 4 kB / 0.8983 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.46e-05/0.1473, allocations: 7.922 kB / 0.8983 GB, free: 66.01 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.887e-05/0.1473, allocations: 35.8 kB / 0.8983 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.183e-05/0.1474, allocations: 71.73 kB / 0.8984 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1474, allocations: 0 / 0.8984 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1474, allocations: 0 / 0.8984 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.326e-06/0.1474, allocations: 0 / 0.8984 GB, free: 65.91 MB / 0.6042 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.0003393/0.1478, allocations: 383.3 kB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.1478, allocations: 12.03 kB / 0.8988 GB, free: 65.47 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.603e-05/0.1479, allocations: 38.73 kB / 0.8988 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.541e-05/0.1479, allocations: 8.844 kB / 0.8988 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.294e-05/0.148, allocations: 181.9 kB / 0.899 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-06/0.148, allocations: 4.375 kB / 0.899 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.148, allocations: 4.375 kB / 0.899 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000156/0.1482, allocations: 103.5 kB / 0.8991 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.1482, allocations: 0 / 0.8991 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.1482, allocations: 0 / 0.8991 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1482, allocations: 3.984 kB / 0.8991 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.1483, allocations: 63.91 kB / 0.8992 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003258/0.1487, allocations: 320.7 kB / 0.8995 GB, free: 64.65 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.1488, allocations: 62.59 kB / 0.8995 GB, free: 64.58 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.647e-05/0.1489, allocations: 28.94 kB / 0.8995 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.1489, allocations: 4 kB / 0.8995 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.1489, allocations: 34.56 kB / 0.8996 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.1489, allocations: 0 / 0.8996 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0002762/0.1492, allocations: 113.5 kB / 0.8997 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.488e-05/0.1492, allocations: 85.05 kB / 0.8998 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.027e-05/0.1493, allocations: 130.9 kB / 0.8999 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.1493, allocations: 29.7 kB / 0.8999 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.909e-05/0.1494, allocations: 100 kB / 0.9 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.251e-05/0.1494, allocations: 19.83 kB / 0.9 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.927e-05/0.1494, allocations: 9.719 kB / 0.9 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.52e-05/0.1494, allocations: 326.8 kB / 0.9004 GB, free: 63.65 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.883e-05/0.1495, allocations: 27.98 kB / 0.9004 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.614e-05/0.1496, allocations: 49.64 kB / 0.9004 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.1497, allocations: 48.83 kB / 0.9005 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1497, allocations: 4 kB / 0.9005 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001541/0.1499, allocations: 101.5 kB / 0.9006 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.1499, allocations: 4 kB / 0.9006 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.1499, allocations: 3.984 kB / 0.9006 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.1499, allocations: 0 / 0.9006 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.253e-05/0.15, allocations: 12 kB / 0.9006 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.15, allocations: 0 / 0.9006 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.127e-05/0.1501, allocations: 20.11 kB / 0.9006 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.1501, allocations: 8 kB / 0.9006 GB, free: 63.36 MB / 0.6042 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 5.092e-05/0.1502, allocations: 121.8 kB / 0.9007 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.1502, allocations: 7.906 kB / 0.9008 GB, free: 63.22 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.227e-05/0.1502, allocations: 8.25 kB / 0.9008 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1502, allocations: 0 / 0.9008 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1502, allocations: 4 kB / 0.9008 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.1502, allocations: 3.938 kB / 0.9008 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.1504, allocations: 189.6 kB / 0.9009 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1504, allocations: 0 / 0.9009 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.203e-05/0.1504, allocations: 15.98 kB / 0.901 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.1504, allocations: 0 / 0.901 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1504, allocations: 0 / 0.901 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.1504, allocations: 0 / 0.901 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1505, allocations: 0 / 0.901 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001654/0.1506, allocations: 195.3 kB / 0.9011 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.572e-05/0.1506, allocations: 81.02 kB / 0.9012 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.1507, allocations: 4 kB / 0.9012 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.581e-05/0.1508, allocations: 15.98 kB / 0.9012 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.1508, allocations: 7.984 kB / 0.9013 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1508, allocations: 16.16 kB / 0.9013 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.276e-05/0.1509, allocations: 101.1 kB / 0.9014 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.42e-07/0.1509, allocations: 0 / 0.9014 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001889/0.1511, allocations: 15.94 kB / 0.9014 GB, free: 62.49 MB / 0.6042 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.0002892/0.1514, allocations: 0.724 MB / 0.9021 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001567/0.1515, allocations: 59.97 kB / 0.9021 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1515, allocations: 0 / 0.9021 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.966e-05/0.1516, allocations: 39.91 kB / 0.9022 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.1518, allocations: 11.94 kB / 0.9022 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009843/0.1528, allocations: 1.463 MB / 0.9036 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.968e-05/0.1529, allocations: 0.6926 MB / 0.9043 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.65e-05/0.153, allocations: 4 kB / 0.9043 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.153, allocations: 23.42 kB / 0.9043 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of SimCode: time 3.5e-07/0.153, allocations: 0 / 0.9043 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3315/0.4846, allocations: 1.769 MB / 0.9061 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.4848, allocations: 246.1 kB / 0.9063 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.444/1.929, allocations: 0 / 0.9063 GB, free: 57.54 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)