Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.603/2.603, allocations: 390.5 MB / 398 MB, free: 10.94 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.001281/0.001281, allocations: 184.8 kB / 491.2 MB, free: 1.551 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.702/1.702, allocations: 221.5 MB / 0.7868 GB, free: 13.28 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.001014/0.001014, allocations: 87.89 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.556e-05/2.567e-05, allocations: 8 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2714, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.318, allocations: 156.2 MB / 1.365 GB, free: 17.36 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/1.319, allocations: 88.11 kB / 1.365 GB, free: 17.36 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0326/1.351, allocations: 12.69 MB / 1.377 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.593e-06/1.351, allocations: 0 / 1.377 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.071e-05/1.351, allocations: 7.656 kB / 1.377 GB, free: 31.9 MB / 0.8386 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.001088/1.353, allocations: 0.6703 MB / 1.378 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/1.353, allocations: 11.69 kB / 1.378 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/1.353, allocations: 64.48 kB / 1.378 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/1.353, allocations: 415.2 kB / 1.379 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/1.354, allocations: 3.812 kB / 1.379 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/1.354, allocations: 11.69 kB / 1.379 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001999/1.354, allocations: 76.88 kB / 1.379 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002303/1.354, allocations: 116.8 kB / 1.379 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/1.354, allocations: 0 / 1.379 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/1.354, allocations: 0 / 1.379 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/1.354, allocations: 11.73 kB / 1.379 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/1.355, allocations: 0.6153 MB / 1.379 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/1.356, allocations: 124 kB / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.086e-05/1.356, allocations: 40.3 kB / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/1.356, allocations: 3.875 kB / 1.379 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/1.356, allocations: 96.92 kB / 1.38 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/1.356, allocations: 0 / 1.38 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0003337/1.356, allocations: 162.7 kB / 1.38 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/1.356, allocations: 63.19 kB / 1.38 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000591/1.357, allocations: 0.5411 MB / 1.38 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/1.357, allocations: 29.52 kB / 1.38 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/1.357, allocations: 262.3 kB / 1.381 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/1.357, allocations: 32.92 kB / 1.381 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.305e-05/1.357, allocations: 0 / 1.381 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002271/1.357, allocations: 372.3 kB / 1.381 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/1.358, allocations: 82.27 kB / 1.381 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/1.358, allocations: 126.1 kB / 1.381 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/1.358, allocations: 91.36 kB / 1.381 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/1.358, allocations: 0 / 1.381 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004375/1.359, allocations: 277.5 kB / 1.382 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/1.359, allocations: 9.094 kB / 1.382 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/1.359, allocations: 64 / 1.382 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/1.359, allocations: 4 kB / 1.382 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/1.359, allocations: 35.75 kB / 1.382 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/1.359, allocations: 3.875 kB / 1.382 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/1.359, allocations: 25.25 kB / 1.382 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/1.359, allocations: 10.88 kB / 1.382 GB, free: 29.87 MB / 0.8386 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,$PRE.assPow.maxPow.y,assPow.maxPow.y,$PRE.assPow.minPow.y,assPow.minPow.y,assPow.assMesDP.u,PEleDem.tab.nextTimeEvent,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEventScaled) * Number of discrete 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.0001242/1.359, allocations: 123.7 kB / 1.382 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002613/1.359, allocations: 161.2 kB / 1.382 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.936e-05/1.36, allocations: 50.31 kB / 1.382 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003015/1.36, allocations: 181.1 kB / 1.382 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/1.36, allocations: 3.719 kB / 1.382 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/1.36, allocations: 0 / 1.382 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/1.36, allocations: 0 / 1.382 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/1.36, allocations: 340.4 kB / 1.382 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.36, allocations: 0 / 1.382 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.094e-05/1.36, allocations: 15.69 kB / 1.382 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/1.36, allocations: 0 / 1.382 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/1.36, allocations: 0 / 1.382 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/1.36, allocations: 0 / 1.382 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.36, allocations: 3.984 kB / 1.382 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003612/1.361, allocations: 244.3 kB / 1.383 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.642e-05/1.361, allocations: 134.5 kB / 1.383 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/1.361, allocations: 3.125 kB / 1.383 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/1.361, allocations: 23.36 kB / 1.383 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.088e-05/1.361, allocations: 26.86 kB / 1.383 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/1.361, allocations: 3.844 kB / 1.383 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004009/1.362, allocations: 394.5 kB / 1.383 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.362, allocations: 0 / 1.383 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003552/1.362, allocations: 77.67 kB / 1.383 GB, free: 28.95 MB / 0.8386 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.maxPow.y,assPow.minPow.y,assPow.assMesDP.u,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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.001833/1.364, allocations: 1.079 MB / 1.384 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002877/1.364, allocations: 142 kB / 1.385 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.364, allocations: 7.781 kB / 1.385 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/1.364, allocations: 51.84 kB / 1.385 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/1.365, allocations: 67.16 kB / 1.385 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/1.366, allocations: 0.7055 MB / 1.385 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006048/1.367, allocations: 0.8697 MB / 1.386 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001632/1.367, allocations: 47.97 kB / 1.386 GB, free: 26.99 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/1.367, allocations: 157.3 kB / 1.386 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of SimCode: time 9.62e-07/1.367, allocations: 4 kB / 1.386 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/1.404, allocations: 8.532 MB / 1.395 GB, free: 22.83 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/1.404, allocations: 175.5 kB / 1.395 GB, free: 22.64 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/3.61, allocations: 0 / 1.395 GB, free: 22.64 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat does not exist to compare? outputFormat=mat