Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.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.AssertPower,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",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.0009682/0.0009683, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.00104/0.00104, allocations: 177.3 kB / 15.95 MB, free: 216 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.452/1.452, allocations: 223.2 MB / 239.9 MB, free: 5.438 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.507/2.507, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003994/0.0003996, allocations: 11.94 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7543/0.7547, allocations: 142.3 MB / 0.9536 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.002414/0.7572, allocations: 2.025 MB / 0.9556 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001762/0.759, allocations: 1.371 MB / 0.9569 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.7591, allocations: 3.438 kB / 0.9569 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005014/0.7596, allocations: 208.6 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002987/0.7599, allocations: 137.8 kB / 0.9573 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003799/0.7603, allocations: 141 kB / 0.9574 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.7606, allocations: 226.2 kB / 0.9576 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.7608, allocations: 63.03 kB / 0.9577 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.761, allocations: 133.4 kB / 0.9578 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.7611, allocations: 122 kB / 0.9579 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.7612, allocations: 5.938 kB / 0.9579 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.7613, allocations: 40.78 kB / 0.958 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.205e-05/0.7614, allocations: 101 kB / 0.958 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.804e-05/0.7614, allocations: 98.88 kB / 0.9581 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.7618, allocations: 380.7 kB / 0.9585 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.7618, allocations: 1.375 kB / 0.9585 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7618, allocations: 0 / 0.9585 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.7618, allocations: 4 kB / 0.9585 GB, free: 4.395 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009279/0.7627, allocations: 0.7364 MB / 0.9592 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.7628, allocations: 10.03 kB / 0.9592 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.7628, allocations: 54.27 kB / 0.9593 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.811e-05/0.7629, allocations: 62.61 kB / 0.9593 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004933/0.7634, allocations: 389 kB / 0.9597 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.7634, allocations: 10.7 kB / 0.9597 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/0.7635, allocations: 17.59 kB / 0.9597 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002463/0.7637, allocations: 136.7 kB / 0.9599 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.7637, allocations: 0 / 0.9599 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.7638, allocations: 5.531 kB / 0.9599 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.7638, allocations: 11.27 kB / 0.9599 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.7639, allocations: 85.36 kB / 0.96 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009677/0.7649, allocations: 0.6504 MB / 0.9606 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.7652, allocations: 132.3 kB / 0.9607 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.7653, allocations: 5.375 kB / 0.9607 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000175/0.7655, allocations: 100.5 kB / 0.9608 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 2.715e-06/0.7655, allocations: 0 / 0.9608 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0004015/0.7659, allocations: 216.7 kB / 0.961 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.7659, allocations: 52.53 kB / 0.9611 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006819/0.7666, allocations: 0.6486 MB / 0.9617 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.7666, allocations: 36.17 kB / 0.9618 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.7668, allocations: 255 kB / 0.962 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.7668, allocations: 37.73 kB / 0.962 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.7669, allocations: 4.969 kB / 0.962 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.06e-05/0.767, allocations: 370.5 kB / 0.9624 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.7671, allocations: 74.94 kB / 0.9625 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.7672, allocations: 114.4 kB / 0.9626 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.7674, allocations: 81.22 kB / 0.9627 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.7674, allocations: 1.125 kB / 0.9627 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003774/0.7678, allocations: 262.7 kB / 0.9629 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.7678, allocations: 5.562 kB / 0.9629 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.7678, allocations: 0.8438 kB / 0.9629 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.7678, allocations: 1.938 kB / 0.9629 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.768, allocations: 40.64 kB / 0.963 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.768, allocations: 2.562 kB / 0.963 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.7682, allocations: 37.92 kB / 0.963 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.7683, allocations: 9.25 kB / 0.963 GB, free: 0.9414 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: 11 ($whenCondition1,$PRE.PEleDem.tab.nextTimeEvent,assPow.assMesP.u,assPow.assMesDP.u,$PRE.assPow.maxPow.y,assPow.maxPow.y,$PRE.assPow.minPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001764/0.7684, allocations: 203.8 kB / 0.9632 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.7685, allocations: 51.19 kB / 0.9632 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.27e-05/0.7686, allocations: 59.84 kB / 0.9633 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.7686, allocations: 6.656 kB / 0.9633 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.7686, allocations: 0 / 0.9633 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.7686, allocations: 3.984 kB / 0.9633 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002948/0.7689, allocations: 379.8 kB / 0.9637 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.7689, allocations: 1.031 kB / 0.9637 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.425e-05/0.769, allocations: 10.97 kB / 0.9637 GB, free: 372 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.769, allocations: 1.688 kB / 0.9637 GB, free: 372 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.769, allocations: 5.109 kB / 0.9637 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.769, allocations: 4.969 kB / 0.9637 GB, free: 364 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.769, allocations: 0 / 0.9637 GB, free: 364 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003657/0.7694, allocations: 272.4 kB / 0.964 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.619e-05/0.7695, allocations: 121.2 kB / 0.9641 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.7696, allocations: 6.094 kB / 0.9641 GB, free: 48 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.7697, allocations: 20.16 kB / 0.9641 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.506e-05/0.7698, allocations: 21.16 kB / 0.9641 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.7698, allocations: 16.3 kB / 0.9641 GB, free: 16 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004715/0.7703, allocations: 423.8 kB / 0.9645 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/0.7703, allocations: 0 / 0.9645 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002819/0.7706, allocations: 59.5 kB / 0.9646 GB, free: 15.77 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assPow.demRat.x) * Number of discrete variables: 7 ($whenCondition1,assPow.assMesP.u,assPow.assMesDP.u,assPow.maxPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (PEleDem.tab.nextTimeEventScaled,assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001582/0.7722, allocations: 1.116 MB / 0.9657 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003226/0.7725, allocations: 156.4 kB / 0.9658 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.7725, allocations: 0.9688 kB / 0.9658 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.7727, allocations: 54.7 kB / 0.9659 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.773, allocations: 68.69 kB / 0.966 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.7749, allocations: 1.414 MB / 0.9673 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004437/0.7753, allocations: 0.8708 MB / 0.9682 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001349/0.7755, allocations: 38.64 kB / 0.9682 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.7757, allocations: 155.7 kB / 0.9684 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of SimCode: time 5.21e-07/0.7757, allocations: 1.094 kB / 0.9684 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02565/0.8014, allocations: 8.753 MB / 0.9769 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.8016, allocations: 233.5 kB / 0.9771 GB, free: 7.945 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.785, allocations: 0 / 0.9771 GB, free: 7.945 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat does not exist to compare? outputFormat=mat