Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.129/2.129, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.0009819/0.0009819, allocations: 184.9 kB / 487.4 MB, free: 5.039 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.43/1.43, allocations: 221.5 MB / 0.7824 GB, free: 1.027 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009045/0.0009045, allocations: 103.5 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.762e-05/1.759e-05, allocations: 5 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.239, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8311/1.07, allocations: 149.2 MB / 1.352 GB, free: 17.96 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/1.07, allocations: 90.05 kB / 1.352 GB, free: 17.96 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002743/1.073, allocations: 0.8754 MB / 1.353 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.844e-06/1.073, allocations: 0 / 1.353 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.021e-06/1.073, allocations: 0 / 1.353 GB, free: 33.62 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002812/1.073, allocations: 330.9 kB / 1.353 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/1.073, allocations: 12.17 kB / 1.353 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/1.074, allocations: 4.688 kB / 1.353 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.363e-05/1.074, allocations: 172.1 kB / 1.353 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/1.074, allocations: 3.844 kB / 1.353 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/1.074, allocations: 3.938 kB / 1.353 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.305e-05/1.074, allocations: 11.03 kB / 1.353 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.445e-05/1.074, allocations: 43.22 kB / 1.353 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/1.074, allocations: 4 kB / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-06/1.074, allocations: 0 / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/1.074, allocations: 0 / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/1.074, allocations: 230 kB / 1.353 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.414e-05/1.074, allocations: 26.14 kB / 1.354 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.949e-05/1.074, allocations: 20.59 kB / 1.354 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/1.074, allocations: 0 / 1.354 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.508e-05/1.074, allocations: 31.17 kB / 1.354 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/1.074, allocations: 3.781 kB / 1.354 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001432/1.074, allocations: 38.98 kB / 1.354 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.066e-05/1.074, allocations: 51.41 kB / 1.354 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.228e-05/1.075, allocations: 94.06 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/1.075, allocations: 33.58 kB / 1.354 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.231e-05/1.075, allocations: 85.17 kB / 1.354 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.215e-05/1.075, allocations: 3.906 kB / 1.354 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/1.075, allocations: 0 / 1.354 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001013/1.075, allocations: 319.9 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.402e-05/1.075, allocations: 4.922 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.051e-05/1.075, allocations: 3.875 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.934e-05/1.075, allocations: 11.73 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/1.075, allocations: 64 / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.015e-05/1.075, allocations: 46.62 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/1.075, allocations: 7.688 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/1.075, allocations: 0.75 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/1.075, allocations: 0 / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.405e-05/1.075, allocations: 5.203 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/1.075, allocations: 0 / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.447e-05/1.075, allocations: 5.109 kB / 1.354 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-06/1.075, allocations: 1.75 kB / 1.354 GB, free: 32.05 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.217e-05/1.075, allocations: 109.8 kB / 1.354 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001036/1.075, allocations: 46.59 kB / 1.354 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/1.075, allocations: 0.7031 kB / 1.354 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/1.075, allocations: 11.7 kB / 1.354 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/1.075, allocations: 0 / 1.354 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/1.075, allocations: 1.375 kB / 1.354 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/1.075, allocations: 0.7031 kB / 1.354 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/1.075, allocations: 137.6 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/1.075, allocations: 0.8438 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.636e-05/1.075, allocations: 12.83 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/1.075, allocations: 0 / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/1.075, allocations: 0.7031 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/1.075, allocations: 3.938 kB / 1.355 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.075, allocations: 0 / 1.355 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/1.076, allocations: 141.9 kB / 1.355 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/1.076, allocations: 81.84 kB / 1.355 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/1.076, allocations: 0.875 kB / 1.355 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.401e-05/1.076, allocations: 9.203 kB / 1.355 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/1.076, allocations: 4.016 kB / 1.355 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/1.076, allocations: 0.75 kB / 1.355 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.236e-05/1.076, allocations: 88.48 kB / 1.355 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.076, allocations: 0 / 1.355 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002144/1.076, allocations: 3.875 kB / 1.355 GB, free: 31.41 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003257/1.076, allocations: 0.672 MB / 1.356 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 6.457e-05/1.076, allocations: 12.2 kB / 1.356 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/1.076, allocations: 0 / 1.356 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.861e-05/1.076, allocations: 12.41 kB / 1.356 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/1.077, allocations: 3.938 kB / 1.356 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002813/1.077, allocations: 97.95 kB / 1.356 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/1.077, allocations: 0.6853 MB / 1.356 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.242e-05/1.077, allocations: 0 / 1.356 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.042e-05/1.077, allocations: 8.656 kB / 1.356 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.077, allocations: 0 / 1.356 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/1.099, allocations: 0.6596 MB / 1.357 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/1.099, allocations: 161.7 kB / 1.357 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.504/2.603, allocations: 0 / 1.357 GB, free: 29.68 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat does not exist to compare? outputFormat=mat