Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.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.AssertFuelFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow",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.0007964/0.0007965, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.001033/0.001033, allocations: 172.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.379/1.379, allocations: 223.3 MB / 240 MB, free: 5.449 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.581/2.581, allocations: 390.4 MB / 0.6655 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003273, allocations: 11.98 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7231/0.7234, allocations: 142.3 MB / 0.9538 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow): time 0.002266/0.7257, allocations: 1.91 MB / 0.9557 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001826/0.7276, allocations: 1.313 MB / 0.957 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.7277, allocations: 5.375 kB / 0.957 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000473/0.7282, allocations: 171.5 kB / 0.9572 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.7285, allocations: 107.4 kB / 0.9573 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003674/0.7289, allocations: 133.6 kB / 0.9574 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000268/0.7291, allocations: 240.6 kB / 0.9576 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.7293, allocations: 46.25 kB / 0.9577 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.7294, allocations: 92.52 kB / 0.9578 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.7295, allocations: 97.84 kB / 0.9578 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.614e-05/0.7296, allocations: 4.312 kB / 0.9579 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.7297, allocations: 45.45 kB / 0.9579 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.698e-05/0.7298, allocations: 94.31 kB / 0.958 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.645e-05/0.7299, allocations: 82.61 kB / 0.9581 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.7301, allocations: 287.9 kB / 0.9583 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.7302, allocations: 1.188 kB / 0.9583 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7302, allocations: 0 / 0.9583 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.7302, allocations: 0 / 0.9583 GB, free: 4.73 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007434/0.7309, allocations: 0.6555 MB / 0.959 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.731, allocations: 9.844 kB / 0.959 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.44e-05/0.731, allocations: 40.42 kB / 0.959 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.7311, allocations: 48.42 kB / 0.9591 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.7315, allocations: 392 kB / 0.9594 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.7315, allocations: 3 kB / 0.9594 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.7315, allocations: 10.53 kB / 0.9595 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.7317, allocations: 89.52 kB / 0.9595 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.7317, allocations: 0.8438 kB / 0.9595 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.7317, allocations: 8.75 kB / 0.9596 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.7318, allocations: 5.797 kB / 0.9596 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.7319, allocations: 59.59 kB / 0.9596 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006056/0.7325, allocations: 0.4906 MB / 0.9601 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.7328, allocations: 108 kB / 0.9602 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.673e-05/0.7329, allocations: 31.97 kB / 0.9602 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.7329, allocations: 1.375 kB / 0.9602 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001508/0.7331, allocations: 97.31 kB / 0.9603 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.7331, allocations: 0 / 0.9603 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0003208/0.7334, allocations: 174.4 kB / 0.9605 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.334e-05/0.7334, allocations: 56.52 kB / 0.9605 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004623/0.7339, allocations: 0.4889 MB / 0.961 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.7339, allocations: 32.11 kB / 0.9611 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.7341, allocations: 221.3 kB / 0.9613 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.7341, allocations: 35.8 kB / 0.9613 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.14e-05/0.7341, allocations: 5 kB / 0.9613 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.609e-05/0.7342, allocations: 367.9 kB / 0.9617 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.7343, allocations: 45.08 kB / 0.9617 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.7344, allocations: 78.5 kB / 0.9618 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.7345, allocations: 56.56 kB / 0.9618 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.7345, allocations: 5.062 kB / 0.9618 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003055/0.7349, allocations: 206.9 kB / 0.962 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.7349, allocations: 5.812 kB / 0.962 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.7349, allocations: 0 / 0.962 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.7349, allocations: 2.312 kB / 0.962 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.7351, allocations: 40.05 kB / 0.9621 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.7351, allocations: 1.969 kB / 0.9621 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.7352, allocations: 17.23 kB / 0.9621 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.7352, allocations: 14.62 kB / 0.9621 GB, free: 1.66 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.mFue_flow.tab.nextTimeEvent,$PRE.assFue.hys.y,assFue.hys.y,mFue_flow.tab.nextTimeEvent,$PRE.mFue_flow.tab.nextTimeEventScaled,mFue_flow.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001539/0.7354, allocations: 186.4 kB / 0.9623 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.363e-05/0.7355, allocations: 47.58 kB / 0.9623 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.616e-05/0.7355, allocations: 44.05 kB / 0.9624 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.7355, allocations: 0.75 kB / 0.9624 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.7356, allocations: 0 / 0.9624 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.7356, allocations: 5.047 kB / 0.9624 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.7358, allocations: 319.8 kB / 0.9627 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.7358, allocations: 0 / 0.9627 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.407e-05/0.7359, allocations: 20.11 kB / 0.9627 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.7359, allocations: 0 / 0.9627 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.7359, allocations: 1.312 kB / 0.9627 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.7359, allocations: 1.188 kB / 0.9627 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7359, allocations: 0 / 0.9627 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.7362, allocations: 212.1 kB / 0.9629 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.783e-05/0.7363, allocations: 118.8 kB / 0.963 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.7363, allocations: 6.5 kB / 0.963 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-05/0.7364, allocations: 13.58 kB / 0.963 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.7365, allocations: 9.922 kB / 0.963 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.7365, allocations: 2.219 kB / 0.963 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003063/0.7368, allocations: 356.6 kB / 0.9634 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7368, allocations: 3.938 kB / 0.9634 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002641/0.7371, allocations: 46.34 kB / 0.9634 GB, free: 0.6289 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assFue.floChaRat.x) * Number of discrete variables: 4 ($whenCondition1,assFue.hys.y,mFue_flow.tab.nextTimeEvent,mFue_flow.tab.nextTimeEventScaled) * Number of discrete states: 3 (mFue_flow.tab.nextTimeEventScaled,assFue.hys.y,mFue_flow.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001313/0.7384, allocations: 1.07 MB / 0.9645 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002536/0.7387, allocations: 113 kB / 0.9646 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.7387, allocations: 0 / 0.9646 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.105e-05/0.7388, allocations: 39.45 kB / 0.9646 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.7392, allocations: 67.77 kB / 0.9647 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.7423, allocations: 2.285 MB / 0.9669 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.7426, allocations: 0.8215 MB / 0.9677 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001264/0.7428, allocations: 34.16 kB / 0.9678 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.7429, allocations: 125.8 kB / 0.9679 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.7429, allocations: 0 / 0.9679 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.7621, allocations: 7.442 MB / 0.9751 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.7623, allocations: 242.1 kB / 0.9754 GB, free: 9.641 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/2.68, allocations: 0 / 0.9754 GB, free: 9.641 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertFuelFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertFuelFlow_res.mat does not exist to compare? outputFormat=mat