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.001233/0.001233, allocations: 99.86 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.001386/0.001386, 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.434/1.434, allocations: 223.2 MB / 239.9 MB, free: 5.441 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.394/2.394, allocations: 390.3 MB / 0.6653 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003336, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.802/0.8023, allocations: 142.3 MB / 0.9536 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002828/0.8052, allocations: 2.05 MB / 0.9556 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002066/0.8073, allocations: 1.416 MB / 0.957 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.8075, allocations: 6.906 kB / 0.957 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007487/0.8082, allocations: 292.4 kB / 0.9573 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.8085, allocations: 187.8 kB / 0.9574 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005116/0.8091, allocations: 227.4 kB / 0.9577 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002958/0.8094, allocations: 241.3 kB / 0.9579 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.8095, allocations: 53.89 kB / 0.9579 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.8097, allocations: 144.2 kB / 0.9581 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.8099, allocations: 142.6 kB / 0.9582 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.8099, allocations: 6.875 kB / 0.9582 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.8101, allocations: 46.22 kB / 0.9583 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.8102, allocations: 117.1 kB / 0.9584 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.746e-05/0.8102, allocations: 96.42 kB / 0.9585 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.8106, allocations: 370.6 kB / 0.9588 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.8106, allocations: 0 / 0.9588 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.153e-06/0.8106, allocations: 1.375 kB / 0.9588 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.8106, allocations: 0 / 0.9588 GB, free: 4.254 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.000915/0.8115, allocations: 0.7667 MB / 0.9596 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.8116, allocations: 9.156 kB / 0.9596 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.993e-05/0.8116, allocations: 45.77 kB / 0.9596 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.46e-05/0.8117, allocations: 65.92 kB / 0.9597 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004972/0.8122, allocations: 400.1 kB / 0.9601 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.8122, allocations: 13.2 kB / 0.9601 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.8123, allocations: 14.81 kB / 0.9601 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.8125, allocations: 142.9 kB / 0.9602 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.8126, allocations: 0 / 0.9602 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.8126, allocations: 1.375 kB / 0.9602 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.8126, allocations: 6.703 kB / 0.9602 GB, free: 3 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.8127, allocations: 66.91 kB / 0.9603 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000752/0.8135, allocations: 0.5876 MB / 0.9609 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.8138, allocations: 135.1 kB / 0.961 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.8139, allocations: 1.062 kB / 0.961 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.8141, allocations: 107.6 kB / 0.9611 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.8141, allocations: 1.25 kB / 0.9611 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0004687/0.8146, allocations: 228.7 kB / 0.9613 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.8146, allocations: 87.02 kB / 0.9614 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000697/0.8153, allocations: 0.6845 MB / 0.9621 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.8153, allocations: 32.36 kB / 0.9621 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.8155, allocations: 263.8 kB / 0.9624 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.8155, allocations: 41.38 kB / 0.9624 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.8155, allocations: 1 kB / 0.9624 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.194e-05/0.8156, allocations: 375.1 kB / 0.9628 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.8158, allocations: 66.78 kB / 0.9628 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.816, allocations: 122.9 kB / 0.9629 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.8161, allocations: 72.77 kB / 0.963 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.8161, allocations: 1.344 kB / 0.963 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003894/0.8165, allocations: 267.2 kB / 0.9633 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.8165, allocations: 8.5 kB / 0.9633 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.8165, allocations: 1.438 kB / 0.9633 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.8166, allocations: 2.25 kB / 0.9633 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.8167, allocations: 33.98 kB / 0.9633 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.8167, allocations: 2.25 kB / 0.9633 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.8169, allocations: 29.02 kB / 0.9633 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.8169, allocations: 10.5 kB / 0.9634 GB, free: 0.7031 MB / 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.0001821/0.8171, allocations: 217.3 kB / 0.9636 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.8172, allocations: 59.69 kB / 0.9636 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.697e-05/0.8173, allocations: 57.59 kB / 0.9637 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.8173, allocations: 1.312 kB / 0.9637 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.8173, allocations: 1 kB / 0.9637 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.8173, allocations: 0 / 0.9637 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.8176, allocations: 369.8 kB / 0.964 GB, free: 136 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.8176, allocations: 1.219 kB / 0.964 GB, free: 136 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.606e-05/0.8176, allocations: 9.781 kB / 0.964 GB, free: 132 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.8176, allocations: 5.5 kB / 0.964 GB, free: 128 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.8177, allocations: 9.359 kB / 0.9641 GB, free: 120 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.8177, allocations: 1.125 kB / 0.9641 GB, free: 120 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.8177, allocations: 3.938 kB / 0.9641 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.818, allocations: 222.6 kB / 0.9643 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.8181, allocations: 134.3 kB / 0.9644 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.655e-05/0.8182, allocations: 7.984 kB / 0.9644 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.8183, allocations: 16.77 kB / 0.9644 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.8184, allocations: 15.92 kB / 0.9644 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.8184, allocations: 8.328 kB / 0.9644 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004977/0.8189, allocations: 463.9 kB / 0.9649 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8189, allocations: 1.031 kB / 0.9649 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003248/0.8193, allocations: 67.17 kB / 0.965 GB, free: 15.54 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.001483/0.8208, allocations: 1.085 MB / 0.966 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003387/0.8211, allocations: 154.3 kB / 0.9662 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.8211, allocations: 0.8438 kB / 0.9662 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.8212, allocations: 59.91 kB / 0.9662 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.8217, allocations: 80.62 kB / 0.9663 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.8234, allocations: 1.583 MB / 0.9678 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.8238, allocations: 0.8693 MB / 0.9687 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001452/0.824, allocations: 50.53 kB / 0.9687 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.8242, allocations: 161.7 kB / 0.9689 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.8242, allocations: 0 / 0.9689 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0214/0.8456, allocations: 9.205 MB / 0.9779 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/0.8458, allocations: 239.4 kB / 0.9781 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.754, allocations: 0 / 0.9781 GB, free: 6.934 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