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/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.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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001104/0.001103, allocations: 169.1 kB / 498.1 MB, free: 5.715 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.524/1.524, allocations: 223.2 MB / 0.7948 GB, free: 18.81 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.001223/0.001223, allocations: 96.08 kB / 0.9346 GB, free: 7.121 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005283/0.0005285, allocations: 10.41 kB / 1.084 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3357, allocations: 142.4 MB / 1.223 GB, free: 89.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2114/0.5471, allocations: 155.4 MB / 1.375 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.5474, allocations: 91.94 kB / 1.375 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03222/0.5797, allocations: 11.77 MB / 1.386 GB, free: 1.852 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.034e-06/0.5797, allocations: 0 / 1.386 GB, free: 1.852 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.208e-05/0.5798, allocations: 7.938 kB / 1.386 GB, free: 1.844 MB / 0.8855 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.001329/0.5811, allocations: 0.6958 MB / 1.387 GB, free: 1.098 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.5812, allocations: 8.031 kB / 1.387 GB, free: 1.09 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.281e-05/0.5813, allocations: 42.55 kB / 1.387 GB, free: 1.039 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.5814, allocations: 43.44 kB / 1.387 GB, free: 0.9961 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007486/0.5821, allocations: 379 kB / 1.387 GB, free: 0.5859 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.5822, allocations: 8 kB / 1.387 GB, free: 0.5781 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.5822, allocations: 7.938 kB / 1.387 GB, free: 0.5703 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.5824, allocations: 101.6 kB / 1.388 GB, free: 476 kB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.5825, allocations: 0 / 1.388 GB, free: 476 kB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.5825, allocations: 0 / 1.388 GB, free: 476 kB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.5825, allocations: 3.984 kB / 1.388 GB, free: 472 kB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001518/0.5827, allocations: 59.97 kB / 1.388 GB, free: 412 kB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009864/0.5837, allocations: 0.516 MB / 1.388 GB, free: 15.84 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.5839, allocations: 94.52 kB / 1.388 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.5839, allocations: 0 / 1.388 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.5842, allocations: 95.45 kB / 1.388 GB, free: 15.63 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.5842, allocations: 4 kB / 1.388 GB, free: 15.62 MB / 0.9011 GB Notification: Performance of matching and sorting (n=9): time 0.0004279/0.5846, allocations: 165 kB / 1.388 GB, free: 15.46 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.5847, allocations: 55.41 kB / 1.389 GB, free: 15.39 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005891/0.5852, allocations: 490 kB / 1.389 GB, free: 14.9 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.5853, allocations: 33.7 kB / 1.389 GB, free: 14.86 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.5855, allocations: 223.8 kB / 1.389 GB, free: 14.64 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.5855, allocations: 31.92 kB / 1.389 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.279e-05/0.5855, allocations: 8 kB / 1.389 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5857, allocations: 358.8 kB / 1.39 GB, free: 14.24 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.5858, allocations: 68.27 kB / 1.39 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.586, allocations: 92.61 kB / 1.39 GB, free: 14.07 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.5862, allocations: 65.88 kB / 1.39 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5862, allocations: 3.953 kB / 1.39 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003925/0.5866, allocations: 241 kB / 1.39 GB, free: 13.77 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.5866, allocations: 12.58 kB / 1.39 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5866, allocations: 3.984 kB / 1.39 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.5866, allocations: 0 / 1.39 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.5868, allocations: 35.98 kB / 1.39 GB, free: 13.71 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.5868, allocations: 384 / 1.39 GB, free: 13.71 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.587, allocations: 23.83 kB / 1.39 GB, free: 13.69 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.587, allocations: 8 kB / 1.39 GB, free: 13.68 MB / 0.9011 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.0002103/0.5873, allocations: 196 kB / 1.39 GB, free: 13.48 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.825e-05/0.5873, allocations: 47.38 kB / 1.39 GB, free: 13.44 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003179/0.5877, allocations: 161.5 kB / 1.391 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.5877, allocations: 0 / 1.391 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.5877, allocations: 4 kB / 1.391 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.5877, allocations: 0 / 1.391 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003094/0.588, allocations: 317.5 kB / 1.391 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.588, allocations: 3.984 kB / 1.391 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.87e-05/0.5881, allocations: 12 kB / 1.391 GB, free: 12.89 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.5881, allocations: 0 / 1.391 GB, free: 12.89 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.5881, allocations: 0 / 1.391 GB, free: 12.89 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.5881, allocations: 7.953 kB / 1.391 GB, free: 12.89 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5881, allocations: 0 / 1.391 GB, free: 12.89 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000373/0.5885, allocations: 216.5 kB / 1.391 GB, free: 12.66 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.5886, allocations: 116.6 kB / 1.391 GB, free: 12.52 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.154e-05/0.5887, allocations: 8 kB / 1.391 GB, free: 12.52 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.5888, allocations: 12.05 kB / 1.391 GB, free: 12.5 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.152e-05/0.5889, allocations: 23.88 kB / 1.391 GB, free: 12.48 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.5889, allocations: 11.94 kB / 1.391 GB, free: 12.47 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0004239/0.5893, allocations: 370.8 kB / 1.392 GB, free: 12.11 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5893, allocations: 0 / 1.392 GB, free: 12.11 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003486/0.5897, allocations: 71.83 kB / 1.392 GB, free: 12.04 MB / 0.9011 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 (assFue.hys.y,mFue_flow.tab.nextTimeEvent,mFue_flow.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001696/0.5914, allocations: 1.105 MB / 1.393 GB, free: 11.06 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003228/0.5917, allocations: 120.8 kB / 1.393 GB, free: 10.95 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5917, allocations: 0 / 1.393 GB, free: 10.95 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 9.836e-05/0.5918, allocations: 43.86 kB / 1.393 GB, free: 10.9 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.5922, allocations: 64.19 kB / 1.393 GB, free: 10.84 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.594, allocations: 1.248 MB / 1.394 GB, free: 9.535 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.5944, allocations: 0.8337 MB / 1.395 GB, free: 8.676 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001312/0.5945, allocations: 37.92 kB / 1.395 GB, free: 8.641 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.5947, allocations: 119.4 kB / 1.395 GB, free: 8.523 MB / 0.9011 GB Notification: Performance of SimCode: time 1.824e-06/0.5947, allocations: 0 / 1.395 GB, free: 8.523 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.6209, allocations: 7.935 MB / 1.403 GB, free: 0.75 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/0.6212, allocations: 230.4 kB / 1.403 GB, free: 0.5078 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.333/2.954, allocations: 0 / 1.403 GB, free: 0.5078 MB / 0.9011 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