Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007865/0.0007864, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008084/0.0008084, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.398/2.398, allocations: 390.4 MB / 0.6655 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003619, allocations: 15.98 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7247/0.7251, allocations: 142.3 MB / 0.9539 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003107/0.7283, allocations: 2.085 MB / 0.9559 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002684/0.731, allocations: 1.448 MB / 0.9573 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003457/0.7314, allocations: 2.281 kB / 0.9573 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000989/0.7324, allocations: 295.2 kB / 0.9576 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004467/0.7328, allocations: 177.9 kB / 0.9578 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007419/0.7336, allocations: 221.1 kB / 0.958 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003928/0.734, allocations: 343.8 kB / 0.9583 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.7342, allocations: 63.06 kB / 0.9584 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.7343, allocations: 141.1 kB / 0.9585 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.7345, allocations: 150.5 kB / 0.9586 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.128e-05/0.7346, allocations: 5.5 kB / 0.9586 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.7347, allocations: 62.27 kB / 0.9587 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.7349, allocations: 114.3 kB / 0.9588 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.167e-05/0.735, allocations: 94.95 kB / 0.9589 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003667/0.7353, allocations: 371.6 kB / 0.9593 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.7353, allocations: 5.219 kB / 0.9593 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.462e-06/0.7354, allocations: 0 / 0.9593 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.035e-05/0.7354, allocations: 0 / 0.9593 GB, free: 4.062 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009928/0.7364, allocations: 0.7672 MB / 0.96 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.7364, allocations: 8.969 kB / 0.96 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.532e-05/0.7365, allocations: 41.98 kB / 0.9601 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.295e-05/0.7366, allocations: 62.11 kB / 0.9601 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005268/0.7371, allocations: 407.4 kB / 0.9605 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.7371, allocations: 8.5 kB / 0.9605 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.7372, allocations: 16.27 kB / 0.9605 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.7375, allocations: 142.6 kB / 0.9607 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.7375, allocations: 0 / 0.9607 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.7375, allocations: 1.375 kB / 0.9607 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.7375, allocations: 6.703 kB / 0.9607 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.7377, allocations: 66.91 kB / 0.9607 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007995/0.7385, allocations: 0.5879 MB / 0.9613 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.7388, allocations: 130.7 kB / 0.9614 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.6e-05/0.7389, allocations: 42.31 kB / 0.9615 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.7389, allocations: 1.875 kB / 0.9615 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.7391, allocations: 108.8 kB / 0.9616 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.7391, allocations: 4.75 kB / 0.9616 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004751/0.7396, allocations: 230.5 kB / 0.9618 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.7397, allocations: 82.95 kB / 0.9619 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.7405, allocations: 0.6836 MB / 0.9626 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.7405, allocations: 28.7 kB / 0.9626 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.7407, allocations: 267.8 kB / 0.9628 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.955e-05/0.7407, allocations: 38.08 kB / 0.9629 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.239e-05/0.7407, allocations: 4 kB / 0.9629 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.7409, allocations: 379.8 kB / 0.9632 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.741, allocations: 70.38 kB / 0.9633 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.7412, allocations: 120 kB / 0.9634 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.7414, allocations: 72.55 kB / 0.9635 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.7414, allocations: 4 kB / 0.9635 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000425/0.7418, allocations: 260.6 kB / 0.9637 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.7418, allocations: 5.562 kB / 0.9637 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.7418, allocations: 0 / 0.9637 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.7419, allocations: 2.562 kB / 0.9638 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.742, allocations: 38.67 kB / 0.9638 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.742, allocations: 5.297 kB / 0.9638 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.7422, allocations: 37.64 kB / 0.9638 GB, free: 500 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.7422, allocations: 9.797 kB / 0.9638 GB, free: 496 kB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002141/0.7425, allocations: 219.4 kB / 0.964 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.1e-05/0.7425, allocations: 60.19 kB / 0.9641 GB, free: 284 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.563e-05/0.7426, allocations: 61.8 kB / 0.9642 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.7426, allocations: 1.125 kB / 0.9642 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.7427, allocations: 1.344 kB / 0.9642 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.7427, allocations: 4 kB / 0.9642 GB, free: 232 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003843/0.7431, allocations: 369.6 kB / 0.9645 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.7431, allocations: 1 kB / 0.9645 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.878e-05/0.7431, allocations: 9.922 kB / 0.9645 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.7431, allocations: 1.406 kB / 0.9645 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.7431, allocations: 9.25 kB / 0.9645 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7432, allocations: 1.25 kB / 0.9645 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7432, allocations: 0 / 0.9645 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.7435, allocations: 219.6 kB / 0.9648 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.7436, allocations: 134 kB / 0.9649 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.192e-05/0.7437, allocations: 4 kB / 0.9649 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.7438, allocations: 14.8 kB / 0.9649 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.7439, allocations: 18.44 kB / 0.9649 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.7439, allocations: 5.656 kB / 0.9649 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005341/0.7445, allocations: 462.7 kB / 0.9654 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7445, allocations: 1.312 kB / 0.9654 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003606/0.7448, allocations: 79.45 kB / 0.9654 GB, free: 15.3 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * 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.001562/0.7464, allocations: 1.081 MB / 0.9665 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003675/0.7468, allocations: 151.4 kB / 0.9666 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.7468, allocations: 0.9062 kB / 0.9666 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.7469, allocations: 56.05 kB / 0.9667 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.7474, allocations: 83.84 kB / 0.9668 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004522/0.752, allocations: 2.915 MB / 0.9696 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.7524, allocations: 0.8607 MB / 0.9705 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001805/0.7526, allocations: 50.64 kB / 0.9705 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000219/0.7529, allocations: 165.2 kB / 0.9707 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of SimCode: time 5.01e-07/0.7529, allocations: 1 kB / 0.9707 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/0.7765, allocations: 9.386 MB / 0.9798 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/0.7767, allocations: 235 kB / 0.9801 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.717, allocations: 0.75 kB / 0.9801 GB, free: 5.23 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat does not exist to compare? outputFormat=mat