Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_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.0008005/0.0008005, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008754/0.0008751, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.376/2.376, allocations: 390.4 MB / 0.6655 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003626, allocations: 8 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6829/0.6833, allocations: 142.3 MB / 0.9539 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001614/0.6849, allocations: 1.37 MB / 0.9552 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006473/0.6856, allocations: 419.5 kB / 0.9556 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.874e-05/0.6857, allocations: 1.469 kB / 0.9556 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.03e-05/0.6857, allocations: 0 / 0.9556 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.565e-05/0.6858, allocations: 21.94 kB / 0.9556 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001729/0.686, allocations: 20.17 kB / 0.9556 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.6861, allocations: 70.66 kB / 0.9557 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.6862, allocations: 18.27 kB / 0.9557 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.6864, allocations: 31.78 kB / 0.9558 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.601e-05/0.6865, allocations: 29.78 kB / 0.9558 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.6865, allocations: 6.812 kB / 0.9558 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.476e-05/0.6865, allocations: 2.031 kB / 0.9558 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.6865, allocations: 10.42 kB / 0.9558 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.6866, allocations: 34.48 kB / 0.9558 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.606e-05/0.6866, allocations: 59.69 kB / 0.9559 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.6867, allocations: 0 / 0.9559 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.164e-06/0.6867, allocations: 0 / 0.9559 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.6867, allocations: 5.281 kB / 0.9559 GB, free: 6.449 MB / 0.7169 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.0004613/0.6871, allocations: 388.4 kB / 0.9563 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.6872, allocations: 9.219 kB / 0.9563 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.6872, allocations: 43.77 kB / 0.9563 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.135e-05/0.6873, allocations: 13.08 kB / 0.9563 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.6874, allocations: 174.5 kB / 0.9565 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.6874, allocations: 5.938 kB / 0.9565 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.6875, allocations: 3.812 kB / 0.9565 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.6877, allocations: 94.28 kB / 0.9566 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.6877, allocations: 1 kB / 0.9566 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.6877, allocations: 7.984 kB / 0.9566 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.6877, allocations: 1.125 kB / 0.9566 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.6879, allocations: 61.92 kB / 0.9567 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.6884, allocations: 327 kB / 0.957 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.6885, allocations: 61.97 kB / 0.957 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.761e-05/0.6886, allocations: 37.3 kB / 0.9571 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.6886, allocations: 0 / 0.9571 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.6887, allocations: 36.5 kB / 0.9571 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.41e-07/0.6887, allocations: 0 / 0.9571 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003227/0.689, allocations: 117.1 kB / 0.9572 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.689, allocations: 78.36 kB / 0.9573 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.161e-05/0.6891, allocations: 133.1 kB / 0.9574 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.6891, allocations: 26.98 kB / 0.9574 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.716e-05/0.6892, allocations: 103.9 kB / 0.9575 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.6892, allocations: 9.875 kB / 0.9576 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/0.6892, allocations: 0 / 0.9576 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.419e-05/0.6893, allocations: 321.4 kB / 0.9579 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.697e-05/0.6893, allocations: 24.23 kB / 0.9579 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.798e-05/0.6894, allocations: 45.42 kB / 0.9579 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.508e-05/0.6895, allocations: 27.11 kB / 0.9579 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.6895, allocations: 0 / 0.9579 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001898/0.6897, allocations: 102 kB / 0.958 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.6897, allocations: 5.344 kB / 0.9581 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.6897, allocations: 0 / 0.9581 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.6898, allocations: 1.125 kB / 0.9581 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.6899, allocations: 16.2 kB / 0.9581 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.6899, allocations: 1.406 kB / 0.9581 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.552e-05/0.69, allocations: 14.23 kB / 0.9581 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.69, allocations: 5.5 kB / 0.9581 GB, free: 4.348 MB / 0.7169 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 6.719e-05/0.6901, allocations: 122.2 kB / 0.9582 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.6901, allocations: 11.92 kB / 0.9582 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.811e-05/0.6901, allocations: 13.7 kB / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.6901, allocations: 1.375 kB / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6901, allocations: 0 / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.6901, allocations: 0 / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.6903, allocations: 184.6 kB / 0.9584 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.6903, allocations: 0 / 0.9584 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.154e-05/0.6904, allocations: 17.06 kB / 0.9584 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.6904, allocations: 0 / 0.9584 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.6904, allocations: 8.938 kB / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.6904, allocations: 5.25 kB / 0.9584 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.6904, allocations: 0 / 0.9584 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002045/0.6906, allocations: 192.3 kB / 0.9586 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/0.6907, allocations: 85.2 kB / 0.9587 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.6907, allocations: 6.125 kB / 0.9587 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.6908, allocations: 18.5 kB / 0.9587 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.6909, allocations: 6.891 kB / 0.9587 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.6909, allocations: 1 kB / 0.9587 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.496e-05/0.6909, allocations: 109.4 kB / 0.9588 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6909, allocations: 0 / 0.9588 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002334/0.6912, allocations: 11.88 kB / 0.9588 GB, free: 3.594 MB / 0.7169 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.0003902/0.6916, allocations: 0.7217 MB / 0.9596 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002035/0.6918, allocations: 58 kB / 0.9596 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6918, allocations: 0 / 0.9596 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.227e-05/0.6919, allocations: 39.97 kB / 0.9596 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.6922, allocations: 12.83 kB / 0.9597 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008887/0.6931, allocations: 0.5839 MB / 0.9602 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.6932, allocations: 0.6901 MB / 0.9609 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.293e-05/0.6932, allocations: 6.281 kB / 0.9609 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.002e-05/0.6933, allocations: 21.83 kB / 0.9609 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.6933, allocations: 0 / 0.9609 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01123/0.7045, allocations: 1.724 MB / 0.9626 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/0.7047, allocations: 219.6 kB / 0.9628 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.36, allocations: 4.688 kB / 0.9628 GB, free: 0.6484 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat does not exist to compare? outputFormat=mat