Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.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.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass",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.337/2.337, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001181/0.001181, allocations: 180.9 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.464/1.464, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 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.0009189/0.0009189, allocations: 103.8 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.803e-05/1.813e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2331, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8176/1.051, allocations: 157.2 MB / 1.36 GB, free: 18.22 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/1.051, allocations: 103.4 kB / 1.36 GB, free: 18.21 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Experimental/DHC/Plants/Cooling/Controls/ChilledWaterBypass.mo:78:3-78:77:writable] Warning: connect(y, y) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.03079/1.082, allocations: 12.95 MB / 1.372 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.433e-06/1.082, allocations: 4 kB / 1.372 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.162e-05/1.082, allocations: 11.69 kB / 1.372 GB, free: 33.17 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001023/1.083, allocations: 0.7688 MB / 1.373 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/1.083, allocations: 11.66 kB / 1.373 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/1.083, allocations: 58.28 kB / 1.373 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006113/1.084, allocations: 448.8 kB / 1.374 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/1.084, allocations: 14.91 kB / 1.374 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/1.084, allocations: 19.38 kB / 1.374 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003763/1.084, allocations: 240 kB / 1.374 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004543/1.085, allocations: 335.5 kB / 1.374 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/1.085, allocations: 0 / 1.374 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/1.085, allocations: 7.875 kB / 1.374 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/1.085, allocations: 7.844 kB / 1.374 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/1.086, allocations: 1.121 MB / 1.375 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006494/1.087, allocations: 460.5 kB / 1.376 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/1.087, allocations: 144.3 kB / 1.376 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/1.087, allocations: 8.25 kB / 1.376 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/1.087, allocations: 197.6 kB / 1.376 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.663e-06/1.087, allocations: 0 / 1.376 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004677/1.088, allocations: 313.5 kB / 1.376 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/1.088, allocations: 138.7 kB / 1.376 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/1.088, allocations: 428.4 kB / 1.377 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/1.088, allocations: 29.55 kB / 1.377 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/1.089, allocations: 248.8 kB / 1.377 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.378e-05/1.089, allocations: 102.9 kB / 1.377 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.444e-05/1.089, allocations: 0 / 1.377 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001442/1.089, allocations: 358 kB / 1.378 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/1.089, allocations: 99.86 kB / 1.378 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/1.089, allocations: 182 kB / 1.378 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/1.089, allocations: 112.7 kB / 1.378 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.089, allocations: 0 / 1.378 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003811/1.09, allocations: 320.4 kB / 1.378 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001084/1.09, allocations: 275.8 kB / 1.379 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/1.09, allocations: 0 / 1.379 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/1.09, allocations: 3.875 kB / 1.379 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/1.09, allocations: 73.55 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/1.09, allocations: 4 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/1.09, allocations: 43.06 kB / 1.379 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/1.09, allocations: 11.06 kB / 1.379 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.132e-06/1.09, allocations: 3.844 kB / 1.379 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003089/1.091, allocations: 241.6 kB / 1.379 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-06/1.091, allocations: 0 / 1.379 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-06/1.091, allocations: 0 / 1.379 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/1.091, allocations: 66.09 kB / 1.379 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-06/1.091, allocations: 0 / 1.379 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/1.091, allocations: 42.95 kB / 1.379 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/1.091, allocations: 11.5 kB / 1.379 GB, free: 30.11 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$PRE.onTwo.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.onOne.combiTimeTable.nextTimeEvent,$whenCondition3,chiBypCon.chiOn[1],chiBypCon.chiOn[2],chiBypCon.bypValCon.trigger,chiBypCon.booToInt[1].y,chiBypCon.booToInt[2].y,chiBypCon.intGreThr.u,onOne.combiTimeTable.nextTimeEvent,$PRE.onOne.combiTimeTable.nextTimeEventScaled,onOne.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEvent,$PRE.onTwo.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001169/1.091, allocations: 122.5 kB / 1.379 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003856/1.092, allocations: 327.3 kB / 1.379 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.035e-05/1.092, allocations: 46.56 kB / 1.38 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004633/1.092, allocations: 345.8 kB / 1.38 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/1.092, allocations: 7.703 kB / 1.38 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/1.092, allocations: 7.828 kB / 1.38 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/1.092, allocations: 3.938 kB / 1.38 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000939/1.093, allocations: 0.9072 MB / 1.381 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/1.093, allocations: 0 / 1.381 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/1.093, allocations: 58.09 kB / 1.381 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/1.094, allocations: 0 / 1.381 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/1.094, allocations: 11.2 kB / 1.381 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/1.094, allocations: 0 / 1.381 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.094, allocations: 0 / 1.381 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006509/1.094, allocations: 0.5828 MB / 1.381 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/1.094, allocations: 141.3 kB / 1.382 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.84e-05/1.094, allocations: 7.312 kB / 1.382 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/1.095, allocations: 31.14 kB / 1.382 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/1.095, allocations: 22.72 kB / 1.382 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/1.095, allocations: 10.81 kB / 1.382 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002943/1.095, allocations: 334 kB / 1.382 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.11e-07/1.095, allocations: 0 / 1.382 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005084/1.096, allocations: 162.3 kB / 1.382 GB, free: 28.8 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (chiBypCon.bypValCon.I.y) * Number of discrete variables: 13 (chiBypCon.bypValCon.trigger,$whenCondition3,$whenCondition2,$whenCondition1,chiBypCon.chiOn[1],chiBypCon.chiOn[2],chiBypCon.booToInt[1].y,chiBypCon.booToInt[2].y,chiBypCon.intGreThr.u,onOne.combiTimeTable.nextTimeEvent,onOne.combiTimeTable.nextTimeEventScaled,onTwo.combiTimeTable.nextTimeEvent,onTwo.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 4 (onTwo.combiTimeTable.nextTimeEvent,onOne.combiTimeTable.nextTimeEvent,onTwo.combiTimeTable.nextTimeEventScaled,onOne.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001665/1.097, allocations: 1.403 MB / 1.383 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005607/1.098, allocations: 434.8 kB / 1.384 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.098, allocations: 3.812 kB / 1.384 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001893/1.098, allocations: 145.8 kB / 1.384 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005554/1.099, allocations: 99.72 kB / 1.384 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/1.1, allocations: 0.7146 MB / 1.385 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/1.1, allocations: 0.8659 MB / 1.386 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004391/1.101, allocations: 157.7 kB / 1.386 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/1.101, allocations: 161.8 kB / 1.386 GB, free: 26.62 MB / 0.8386 GB Notification: Performance of SimCode: time 2.91e-07/1.101, allocations: 0 / 1.386 GB, free: 26.62 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/1.131, allocations: 9.998 MB / 1.396 GB, free: 21.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/1.132, allocations: 197.1 kB / 1.396 GB, free: 21.65 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.364/3.495, allocations: 3 kB / 1.396 GB, free: 21.65 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat --tempDir=temp_Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass.fmu > Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat does not exist to compare? outputFormat=mat