Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",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.005818/0.005818, allocations: 102.2 kB / 15.73 MB, free: 6.031 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.001321/0.001321, allocations: 194.4 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.777/2.777, allocations: 461.9 MB / 0.7348 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 64.09 kB / 1.054 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3367, allocations: 157.4 MB / 1.207 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003802/0.3405, allocations: 1.98 MB / 1.209 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.3422, allocations: 0.6857 MB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002205/0.3424, allocations: 4 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.3427, allocations: 19.73 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.3429, allocations: 19.81 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005989/0.3435, allocations: 87.77 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000352/0.3438, allocations: 151.6 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002559/0.3441, allocations: 88.53 kB / 1.21 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.3443, allocations: 55.78 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.3445, allocations: 75.61 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.483e-05/0.3445, allocations: 16 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00021/0.3448, allocations: 63.89 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.3449, allocations: 59.83 kB / 1.211 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.345, allocations: 91.41 kB / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004499/0.3455, allocations: 275.2 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3455, allocations: 0 / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3455, allocations: 3.938 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.3456, allocations: 0 / 1.211 GB, free: 6.383 MB / 0.9669 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.001188/0.3467, allocations: 0.5335 MB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.3468, allocations: 8.625 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.152e-05/0.3469, allocations: 46.73 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.3486, allocations: 431.8 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005114/0.3491, allocations: 303.8 kB / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.3492, allocations: 76.17 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.3493, allocations: 8.375 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000877/0.3502, allocations: 383.1 kB / 1.213 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.3502, allocations: 4 kB / 1.213 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.3502, allocations: 8 kB / 1.213 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.3502, allocations: 4 kB / 1.213 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.3515, allocations: 0.5428 MB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.3534, allocations: 1.005 MB / 1.214 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006738/0.3541, allocations: 294.3 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005878/0.3547, allocations: 276.5 kB / 1.215 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.3547, allocations: 3.938 kB / 1.215 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.3547, allocations: 34.56 kB / 1.215 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.3547, allocations: 0 / 1.215 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.001888/0.3566, allocations: 0.7823 MB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.3567, allocations: 55.39 kB / 1.216 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003458/0.357, allocations: 302.6 kB / 1.216 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.3571, allocations: 25.7 kB / 1.216 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.3572, allocations: 148.2 kB / 1.216 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.866e-05/0.3572, allocations: 27.64 kB / 1.216 GB, free: 0.9062 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.145e-05/0.3573, allocations: 37.67 kB / 1.216 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3575, allocations: 334.8 kB / 1.216 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005854/0.3581, allocations: 259.7 kB / 1.217 GB, free: 280 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007291/0.3588, allocations: 271.7 kB / 1.217 GB, free: 8 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.3602, allocations: 436.4 kB / 1.217 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3603, allocations: 0 / 1.217 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001772/0.362, allocations: 0.5283 MB / 1.218 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3621, allocations: 9.719 kB / 1.218 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3621, allocations: 3.984 kB / 1.218 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.3621, allocations: 0 / 1.218 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.3625, allocations: 95.77 kB / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3625, allocations: 4 kB / 1.218 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.3629, allocations: 75.72 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.3629, allocations: 7.984 kB / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.3631, allocations: 149.8 kB / 1.218 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.475e-05/0.3631, allocations: 15.81 kB / 1.218 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.066e-05/0.3632, allocations: 29.69 kB / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3632, allocations: 0 / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.902e-06/0.3632, allocations: 4 kB / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3632, allocations: 0 / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.3637, allocations: 436.3 kB / 1.219 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3637, allocations: 0 / 1.219 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003593/0.3641, allocations: 91.83 kB / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3641, allocations: 0 / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.3641, allocations: 11.98 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3641, allocations: 0 / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3641, allocations: 0 / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.3654, allocations: 0.6355 MB / 1.219 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.857e-05/0.3655, allocations: 96.83 kB / 1.219 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.3656, allocations: 7.984 kB / 1.219 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.3659, allocations: 71.88 kB / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/0.366, allocations: 11.98 kB / 1.219 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.366, allocations: 7.984 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002433/0.3663, allocations: 225.9 kB / 1.22 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.01e-07/0.3663, allocations: 0 / 1.22 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003298/0.3666, allocations: 43.84 kB / 1.22 GB, free: 12.95 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001725/0.3683, allocations: 1.176 MB / 1.221 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001275/0.3696, allocations: 0.5268 MB / 1.221 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3697, allocations: 0 / 1.221 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005913/0.3702, allocations: 279.7 kB / 1.222 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.3706, allocations: 13.27 kB / 1.222 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00625/0.3768, allocations: 3.881 MB / 1.225 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.3773, allocations: 0.7551 MB / 1.226 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002007/0.3775, allocations: 53.42 kB / 1.226 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.3777, allocations: 83.38 kB / 1.226 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of SimCode: time 7.72e-07/0.3777, allocations: 4 kB / 1.226 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.4024, allocations: 5.142 MB / 1.231 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.863/8.265, allocations: 8.969 kB / 1.231 GB, free: 1.047 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,norQSta.qNor,norQSta.canMelt,norQSta.SOC Variables in the result:coeCha[1],coeCha[2],coeCha[3],coeCha[4],coeCha[5],coeCha[6],coeDisCha[1],coeDisCha[2],coeDisCha[3],coeDisCha[4],coeDisCha[5],coeDisCha[6],dt,fra.amplitude,fra.f,fra.offset,fra.phase,fra.startTime,fra.y,greThr.h,greThr.pre_y_start,greThr.t,greThr.u,greThr.y,lmtd.height,lmtd.offset,lmtd.startTime,lmtd.y,norQSta.SOC,norQSta.canFreeze,norQSta.canMelt,norQSta.coeCha[1],norQSta.coeCha[2],norQSta.coeCha[3],norQSta.coeCha[4],norQSta.coeCha[5],norQSta.coeCha[6],norQSta.coeDisCha[1],norQSta.coeDisCha[2],norQSta.coeDisCha[3],norQSta.coeDisCha[4],norQSta.coeDisCha[5],norQSta.coeDisCha[6],norQSta.dtCha,norQSta.dtDisCha,norQSta.lmtdSta,norQSta.qNor,not1.u,not1.y,time