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.414/2.414, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001613/0.001614, allocations: 184.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.721/1.721, allocations: 221.3 MB / 0.7915 GB, free: 5.477 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.001041/0.001041, allocations: 87.95 kB / 0.9317 GB, free: 5.781 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.099e-05/4.123e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3445, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.128/1.472, allocations: 151.4 MB / 1.367 GB, free: 2.648 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004018/1.473, allocations: 88.69 kB / 1.367 GB, free: 2.598 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005177/1.478, allocations: 1.552 MB / 1.368 GB, free: 1.25 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.855e-06/1.478, allocations: 0 / 1.368 GB, free: 1.25 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.241e-05/1.478, allocations: 4 kB / 1.368 GB, free: 1.246 MB / 0.823 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.0005347/1.478, allocations: 371 kB / 1.369 GB, free: 0.8438 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/1.479, allocations: 8.031 kB / 1.369 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.223e-05/1.479, allocations: 46.3 kB / 1.369 GB, free: 0.7852 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.938e-05/1.479, allocations: 11.86 kB / 1.369 GB, free: 0.7734 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/1.479, allocations: 170.9 kB / 1.369 GB, free: 0.5664 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/1.479, allocations: 11.8 kB / 1.369 GB, free: 0.5586 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/1.479, allocations: 7.938 kB / 1.369 GB, free: 0.5508 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002033/1.479, allocations: 80.64 kB / 1.369 GB, free: 484 kB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/1.479, allocations: 0 / 1.369 GB, free: 484 kB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/1.479, allocations: 3.188 kB / 1.369 GB, free: 484 kB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/1.479, allocations: 4 kB / 1.369 GB, free: 480 kB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/1.479, allocations: 29.19 kB / 1.369 GB, free: 460 kB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006757/1.48, allocations: 329.5 kB / 1.369 GB, free: 112 kB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001271/1.48, allocations: 48.72 kB / 1.369 GB, free: 64 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.765e-05/1.48, allocations: 22.11 kB / 1.369 GB, free: 44 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/1.48, allocations: 0 / 1.369 GB, free: 44 kB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/1.48, allocations: 34.52 kB / 1.369 GB, free: 0 / 0.823 GB Notification: Performance of pre-optimization done (n=4): time 1.803e-06/1.48, allocations: 0 / 1.369 GB, free: 0 / 0.823 GB Notification: Performance of matching and sorting (n=4): time 0.0002491/1.481, allocations: 64.41 kB / 1.37 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/1.481, allocations: 77.11 kB / 1.37 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/1.481, allocations: 124.7 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/1.481, allocations: 29.7 kB / 1.37 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.421e-05/1.481, allocations: 102.1 kB / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/1.481, allocations: 7.906 kB / 1.37 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-06/1.481, allocations: 2.938 kB / 1.37 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001468/1.481, allocations: 317.6 kB / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.159e-05/1.481, allocations: 13.5 kB / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.258e-05/1.481, allocations: 34.66 kB / 1.37 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.291e-05/1.481, allocations: 12.47 kB / 1.37 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.481, allocations: 4 kB / 1.37 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001338/1.481, allocations: 67.34 kB / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/1.481, allocations: 11.95 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/1.482, allocations: 0 / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/1.482, allocations: 0 / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/1.482, allocations: 12.17 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/1.482, allocations: 0 / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.322e-05/1.482, allocations: 24.86 kB / 1.37 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/1.482, allocations: 0 / 1.37 GB, free: 15.12 MB / 0.8386 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 () * 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 0.0001014/1.482, allocations: 112.7 kB / 1.37 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.572e-05/1.482, allocations: 7.906 kB / 1.37 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/1.482, allocations: 14.84 kB / 1.37 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/1.482, allocations: 4 kB / 1.37 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/1.482, allocations: 3.938 kB / 1.37 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/1.482, allocations: 0 / 1.37 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/1.482, allocations: 191.6 kB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.482, allocations: 4 kB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.229e-05/1.482, allocations: 15.98 kB / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/1.482, allocations: 0 / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/1.482, allocations: 0 / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/1.482, allocations: 3.953 kB / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.482, allocations: 0 / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001909/1.483, allocations: 163.9 kB / 1.371 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.515e-05/1.483, allocations: 92.94 kB / 1.371 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/1.483, allocations: 0 / 1.371 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/1.483, allocations: 15.98 kB / 1.371 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.554e-05/1.483, allocations: 15 kB / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/1.483, allocations: 0 / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.68e-05/1.483, allocations: 103 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.483, allocations: 0 / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000226/1.483, allocations: 12 kB / 1.371 GB, free: 14.32 MB / 0.8386 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) * 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.0005272/1.484, allocations: 0.6958 MB / 1.372 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001387/1.484, allocations: 35.38 kB / 1.372 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.484, allocations: 0 / 1.372 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.559e-05/1.484, allocations: 17.81 kB / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/1.484, allocations: 16.42 kB / 1.372 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000468/1.485, allocations: 131.8 kB / 1.372 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/1.485, allocations: 0.6965 MB / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.491e-05/1.485, allocations: 0 / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/1.485, allocations: 27.23 kB / 1.373 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of SimCode: time 4.91e-07/1.485, allocations: 3.938 kB / 1.373 GB, free: 12.67 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01408/1.499, allocations: 1.718 MB / 1.374 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/1.5, allocations: 184.8 kB / 1.374 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/3.113, allocations: 0 / 1.374 GB, free: 10.91 MB / 0.8386 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