Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.493/2.493, allocations: 393.5 MB / 408.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 180 kB / 0.4901 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.724/1.724, allocations: 223.1 MB / 0.7992 GB, free: 14.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 100.2 kB / 0.9396 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004259/0.0004259, allocations: 10.53 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3761, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2269/0.6031, allocations: 151.5 MB / 1.377 GB, free: 1.934 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000365/0.6035, allocations: 91.92 kB / 1.377 GB, free: 1.844 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004683/0.6082, allocations: 1.547 MB / 1.379 GB, free: 296 kB / 0.8698 GB Notification: Performance of FrontEnd: time 1.07e-05/0.6083, allocations: 0 / 1.379 GB, free: 296 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.228e-06/0.6083, allocations: 3.938 kB / 1.379 GB, free: 292 kB / 0.8698 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.0005818/0.6089, allocations: 387.1 kB / 1.379 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/0.6089, allocations: 16.03 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.823e-05/0.609, allocations: 34.56 kB / 1.379 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.047e-05/0.609, allocations: 11.86 kB / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.6092, allocations: 178.9 kB / 1.379 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.6093, allocations: 3.984 kB / 1.379 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.6093, allocations: 8 kB / 1.379 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.6095, allocations: 87.38 kB / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.6095, allocations: 4 kB / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.6096, allocations: 4 kB / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.6096, allocations: 0 / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.6097, allocations: 59.91 kB / 1.38 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005387/0.6103, allocations: 324.7 kB / 1.38 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.6105, allocations: 62.58 kB / 1.38 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.6105, allocations: 7.984 kB / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.6105, allocations: 42.59 kB / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.6105, allocations: 0 / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4): time 0.0003707/0.6109, allocations: 105.7 kB / 1.38 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.611, allocations: 85.11 kB / 1.38 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.6111, allocations: 117.2 kB / 1.38 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.6111, allocations: 25.7 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.574e-05/0.6112, allocations: 99.98 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.6112, allocations: 27.67 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.6113, allocations: 0 / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.6114, allocations: 316.8 kB / 1.381 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.442e-05/0.6115, allocations: 27.98 kB / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.788e-05/0.6116, allocations: 45.69 kB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.632e-05/0.6117, allocations: 27.98 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6117, allocations: 0 / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002031/0.6119, allocations: 93.61 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.6119, allocations: 4 kB / 1.381 GB, free: 13.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.6119, allocations: 3.953 kB / 1.381 GB, free: 13.88 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.612, allocations: 7.938 kB / 1.381 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.6121, allocations: 15.92 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.6121, allocations: 0 / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.215e-05/0.6122, allocations: 19.98 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.6122, allocations: 0 / 1.381 GB, free: 13.84 MB / 0.8855 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.984e-05/0.6123, allocations: 114.6 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.6123, allocations: 7.906 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.949e-05/0.6124, allocations: 16.23 kB / 1.381 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.6124, allocations: 7.953 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.6124, allocations: 4 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.6124, allocations: 0 / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.6126, allocations: 181.6 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.6126, allocations: 4 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.615e-05/0.6127, allocations: 8 kB / 1.381 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.6127, allocations: 0 / 1.381 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.6127, allocations: 3.984 kB / 1.381 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.6127, allocations: 0 / 1.381 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.6128, allocations: 3.953 kB / 1.381 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.613, allocations: 187.5 kB / 1.381 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.602e-05/0.6131, allocations: 81.02 kB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.6131, allocations: 8.188 kB / 1.382 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.6132, allocations: 19.98 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.78e-05/0.6133, allocations: 11.94 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.6133, allocations: 4 kB / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.381e-05/0.6134, allocations: 105.6 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6134, allocations: 0 / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002161/0.6136, allocations: 15.94 kB / 1.382 GB, free: 12.98 MB / 0.8855 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.0005341/0.6141, allocations: 0.7165 MB / 1.382 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002235/0.6144, allocations: 71.94 kB / 1.382 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6144, allocations: 0 / 1.382 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.358e-05/0.6145, allocations: 31.92 kB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.6147, allocations: 7.984 kB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.6158, allocations: 0.5898 MB / 1.383 GB, free: 11.48 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.6161, allocations: 0.6926 MB / 1.384 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.916e-05/0.6161, allocations: 7.984 kB / 1.384 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.258e-05/0.6162, allocations: 15.44 kB / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of SimCode: time 3.7e-07/0.6162, allocations: 0 / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01451/0.6307, allocations: 1.704 MB / 1.385 GB, free: 9.223 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/0.631, allocations: 220.6 kB / 1.386 GB, free: 8.977 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.523, allocations: 4 kB / 1.386 GB, free: 8.973 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat does not exist to compare? outputFormat=mat