Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.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.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass,fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 2.274/2.274, allocations: 390.5 MB / 398 MB, free: 11.02 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.001462/0.001462, allocations: 176.9 kB / 491.2 MB, free: 1.633 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.727/1.727, allocations: 221.5 MB / 0.7868 GB, free: 13.32 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.001019/0.001019, allocations: 91.91 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.936e-05/1.938e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2914, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9516/1.243, allocations: 158 MB / 1.367 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/1.243, allocations: 102.7 kB / 1.367 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03132/1.275, allocations: 12.96 MB / 1.379 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.142e-06/1.275, allocations: 0 / 1.379 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.882e-05/1.275, allocations: 7.688 kB / 1.379 GB, free: 31.86 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.001108/1.276, allocations: 0.769 MB / 1.38 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/1.276, allocations: 7.688 kB / 1.38 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/1.276, allocations: 62.06 kB / 1.38 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006576/1.277, allocations: 453 kB / 1.381 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/1.277, allocations: 18.64 kB / 1.381 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/1.277, allocations: 27.12 kB / 1.381 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003794/1.277, allocations: 233.8 kB / 1.381 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004464/1.278, allocations: 330.6 kB / 1.381 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/1.278, allocations: 0 / 1.381 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.57e-05/1.278, allocations: 0 / 1.381 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/1.278, allocations: 7.719 kB / 1.381 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/1.279, allocations: 1.127 MB / 1.382 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006335/1.28, allocations: 458.4 kB / 1.383 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/1.28, allocations: 150.1 kB / 1.383 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/1.28, allocations: 11.56 kB / 1.383 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/1.28, allocations: 189 kB / 1.383 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.623e-06/1.28, allocations: 0 / 1.383 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004705/1.281, allocations: 325.9 kB / 1.384 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/1.281, allocations: 135.7 kB / 1.384 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004551/1.281, allocations: 433 kB / 1.384 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/1.281, allocations: 25.7 kB / 1.384 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/1.281, allocations: 246.2 kB / 1.384 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.369e-05/1.281, allocations: 98.56 kB / 1.384 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.461e-05/1.281, allocations: 0 / 1.384 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000172/1.282, allocations: 358.5 kB / 1.385 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/1.282, allocations: 103.7 kB / 1.385 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/1.282, allocations: 178 kB / 1.385 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/1.282, allocations: 113.8 kB / 1.385 GB, free: 28.76 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.282, allocations: 3.938 kB / 1.385 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004082/1.283, allocations: 318 kB / 1.385 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001415/1.283, allocations: 278.2 kB / 1.386 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/1.283, allocations: 0 / 1.386 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/1.283, allocations: 3.844 kB / 1.386 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/1.283, allocations: 72.94 kB / 1.386 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/1.283, allocations: 0 / 1.386 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/1.283, allocations: 38.81 kB / 1.386 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/1.283, allocations: 15.3 kB / 1.386 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/1.283, allocations: 3.812 kB / 1.386 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003246/1.284, allocations: 237.6 kB / 1.386 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-06/1.284, allocations: 3.812 kB / 1.386 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.845e-06/1.284, allocations: 0 / 1.386 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/1.284, allocations: 65.56 kB / 1.386 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/1.284, allocations: 7.938 kB / 1.386 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/1.284, allocations: 38.95 kB / 1.386 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/1.284, allocations: 11.56 kB / 1.386 GB, free: 28.27 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.0001244/1.284, allocations: 127 kB / 1.386 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003903/1.285, allocations: 314.9 kB / 1.387 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.145e-05/1.285, allocations: 46.69 kB / 1.387 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005032/1.285, allocations: 352.6 kB / 1.387 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/1.285, allocations: 3.906 kB / 1.387 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/1.285, allocations: 64 / 1.387 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/1.285, allocations: 4 kB / 1.387 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009946/1.286, allocations: 0.9156 MB / 1.388 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/1.286, allocations: 0 / 1.388 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/1.287, allocations: 50.28 kB / 1.388 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/1.287, allocations: 7.891 kB / 1.388 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/1.287, allocations: 7.594 kB / 1.388 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/1.287, allocations: 0 / 1.388 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/1.287, allocations: 7.797 kB / 1.388 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006729/1.287, allocations: 0.579 MB / 1.389 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.169e-05/1.287, allocations: 135.5 kB / 1.389 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.995e-05/1.287, allocations: 7.641 kB / 1.389 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/1.288, allocations: 30.75 kB / 1.389 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.954e-05/1.288, allocations: 22.53 kB / 1.389 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/1.288, allocations: 11.36 kB / 1.389 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003438/1.288, allocations: 337.6 kB / 1.389 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.288, allocations: 0 / 1.389 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005442/1.289, allocations: 160.5 kB / 1.389 GB, free: 26.97 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.001754/1.29, allocations: 1.41 MB / 1.391 GB, free: 26.1 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006189/1.291, allocations: 423.9 kB / 1.391 GB, free: 26.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/1.291, allocations: 0 / 1.391 GB, free: 26.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/1.291, allocations: 142.8 kB / 1.391 GB, free: 26.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005951/1.292, allocations: 106.4 kB / 1.391 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/1.293, allocations: 0.7112 MB / 1.392 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004699/1.294, allocations: 0.8674 MB / 1.393 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004156/1.294, allocations: 160 kB / 1.393 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/1.294, allocations: 164.4 kB / 1.393 GB, free: 24.79 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.294, allocations: 0 / 1.393 GB, free: 24.79 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/1.325, allocations: 9.986 MB / 1.403 GB, free: 19.74 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/1.325, allocations: 218.7 kB / 1.403 GB, free: 19.44 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/3.625, allocations: 3.25 kB / 1.403 GB, free: 19.44 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; mkfifo Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe ; head -c 1048576 < Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe >> ../files/Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat --tempDir=temp_Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_ChilledWaterBypass.fmu > Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.ChilledWaterBypass_res.mat does not exist to compare? outputFormat=mat