Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",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.38/2.38, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001237/0.001237, allocations: 176.8 kB / 487.4 MB, free: 5.059 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.507/1.507, allocations: 221.5 MB / 0.7824 GB, free: 1.031 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.0009343/0.0009345, allocations: 95.3 kB / 0.9219 GB, free: 2.27 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.76e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2437, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8313/1.075, allocations: 151.9 MB / 1.354 GB, free: 18.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/1.075, allocations: 91.11 kB / 1.354 GB, free: 18.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01213/1.087, allocations: 4.668 MB / 1.359 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.614e-06/1.087, allocations: 0 / 1.359 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.423e-05/1.087, allocations: 7.719 kB / 1.359 GB, free: 33.5 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.000852/1.088, allocations: 0.5462 MB / 1.36 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/1.088, allocations: 12.12 kB / 1.36 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/1.089, allocations: 33.09 kB / 1.36 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/1.089, allocations: 257.2 kB / 1.36 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/1.089, allocations: 18.5 kB / 1.36 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-05/1.089, allocations: 20.75 kB / 1.36 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003809/1.089, allocations: 204.2 kB / 1.36 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/1.09, allocations: 266.3 kB / 1.36 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/1.09, allocations: 3.844 kB / 1.36 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/1.09, allocations: 3.953 kB / 1.36 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/1.09, allocations: 7.812 kB / 1.36 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/1.091, allocations: 0.8825 MB / 1.361 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003577/1.092, allocations: 221.3 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/1.092, allocations: 95.81 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/1.092, allocations: 3.844 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/1.092, allocations: 154.7 kB / 1.362 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 2.094e-06/1.092, allocations: 4 kB / 1.362 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=32): time 0.0003555/1.092, allocations: 206.3 kB / 1.362 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/1.092, allocations: 64.77 kB / 1.362 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/1.093, allocations: 165.1 kB / 1.362 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/1.093, allocations: 37.08 kB / 1.362 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.476e-05/1.093, allocations: 149.8 kB / 1.362 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.811e-05/1.093, allocations: 82.88 kB / 1.362 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.685e-05/1.093, allocations: 0 / 1.362 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001302/1.093, allocations: 339.8 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/1.093, allocations: 80.66 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/1.093, allocations: 131 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/1.093, allocations: 79.86 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.093, allocations: 4 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003834/1.094, allocations: 271.1 kB / 1.363 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/1.094, allocations: 31.23 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/1.094, allocations: 7.812 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/1.094, allocations: 3.844 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/1.094, allocations: 51 kB / 1.363 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/1.094, allocations: 160 / 1.363 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/1.094, allocations: 48.45 kB / 1.363 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/1.094, allocations: 15.11 kB / 1.363 GB, free: 31.39 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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.0001203/1.094, allocations: 133.1 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002685/1.095, allocations: 204.9 kB / 1.364 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/1.095, allocations: 19.56 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003755/1.095, allocations: 247.5 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/1.095, allocations: 3.844 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/1.095, allocations: 3.953 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/1.095, allocations: 3.422 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007459/1.096, allocations: 0.6333 MB / 1.365 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/1.096, allocations: 0 / 1.365 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/1.096, allocations: 36.81 kB / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/1.096, allocations: 3.953 kB / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/1.096, allocations: 0 / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/1.096, allocations: 3.875 kB / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.096, allocations: 3 kB / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/1.097, allocations: 319.8 kB / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.558e-05/1.097, allocations: 96.64 kB / 1.365 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/1.097, allocations: 11.73 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/1.097, allocations: 28.67 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/1.097, allocations: 54.83 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/1.097, allocations: 7.781 kB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.668e-05/1.097, allocations: 112.3 kB / 1.365 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.81e-07/1.097, allocations: 0 / 1.365 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003139/1.097, allocations: 52.92 kB / 1.365 GB, free: 30.51 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: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0006835/1.098, allocations: 0.8753 MB / 1.366 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000351/1.098, allocations: 277.7 kB / 1.366 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.098, allocations: 0 / 1.366 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/1.099, allocations: 111.8 kB / 1.367 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/1.099, allocations: 27.33 kB / 1.367 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007846/1.1, allocations: 366.5 kB / 1.367 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/1.1, allocations: 0.7626 MB / 1.368 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000116/1.1, allocations: 27.05 kB / 1.368 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/1.1, allocations: 86.95 kB / 1.368 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.1, allocations: 0 / 1.368 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/1.125, allocations: 4.5 MB / 1.372 GB, free: 28.53 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/1.125, allocations: 177.2 kB / 1.372 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.94, allocations: 0 / 1.372 GB, free: 28.32 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat does not exist to compare? outputFormat=mat