Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS.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.DHC.Loads.BaseClasses.Validation.BuildingWithETS,fileNamePrefix="Buildings_latest_Buildings_DHC_Loads_BaseClasses_Validation_BuildingWithETS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS,fileNamePrefix="Buildings_latest_Buildings_DHC_Loads_BaseClasses_Validation_BuildingWithETS",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.001441/0.001441, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001758/0.001758, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.862/1.862, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.196/4.196, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002489/0.002489, allocations: 66.94 kB / 0.8987 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3749, allocations: 157.4 MB / 1.052 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS): time 3.915/4.29, allocations: 1.356 GB / 2.409 GB, free: 87.61 MB / 1.561 GB Notification: Performance of NFInst.instExpressions: time 0.5446/4.835, allocations: 331.1 MB / 2.732 GB, free: 37.7 MB / 1.561 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0526/4.887, allocations: 1.122 MB / 2.733 GB, free: 37.04 MB / 1.561 GB Notification: Performance of NFTyping.typeComponents: time 0.03559/4.923, allocations: 11.56 MB / 2.744 GB, free: 25.94 MB / 1.561 GB Notification: Performance of NFTyping.typeBindings: time 0.09649/5.019, allocations: 29.96 MB / 2.774 GB, free: 0.5352 MB / 1.561 GB Notification: Performance of NFTyping.typeClassSections: time 0.06304/5.082, allocations: 18.24 MB / 2.791 GB, free: 276 kB / 1.576 GB Notification: Performance of NFFlatten.flatten: time 0.1121/5.195, allocations: 58.43 MB / 2.848 GB, free: 7.383 MB / 1.639 GB Notification: Performance of NFFlatten.resolveConnections: time 0.07079/5.265, allocations: 23 MB / 2.871 GB, free: 0.4922 MB / 1.654 GB Notification: Performance of NFEvalConstants.evaluate: time 0.07834/5.344, allocations: 24.98 MB / 2.895 GB, free: 8.949 MB / 1.686 GB Notification: Performance of NFSimplifyModel.simplify: time 0.04536/5.389, allocations: 18.28 MB / 2.913 GB, free: 7.828 MB / 1.701 GB Notification: Performance of NFPackage.collectConstants: time 0.01312/5.402, allocations: 2.129 MB / 2.915 GB, free: 5.699 MB / 1.701 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07258/5.475, allocations: 18.03 MB / 2.933 GB, free: 4.359 MB / 1.717 GB Notification: Performance of NFScalarize.scalarize: time 0.01371/5.489, allocations: 4.921 MB / 2.938 GB, free: 15.51 MB / 1.732 GB Notification: Performance of NFVerifyModel.verify: time 0.03403/5.523, allocations: 11.19 MB / 2.949 GB, free: 4.34 MB / 1.732 GB Notification: Performance of NFConvertDAE.convert: time 0.1042/5.627, allocations: 40.7 MB / 2.988 GB, free: 12.95 MB / 1.779 GB Notification: Performance of FrontEnd - DAE generated: time 9.949e-06/5.627, allocations: 0 / 2.988 GB, free: 12.95 MB / 1.779 GB Notification: Performance of FrontEnd: time 5.45e-06/5.627, allocations: 4 kB / 2.988 GB, free: 12.95 MB / 1.779 GB Notification: Performance of Transformations before backend: time 0.001255/5.629, allocations: 4 kB / 2.988 GB, free: 12.95 MB / 1.779 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3233 * Number of variables: 3233 Notification: Performance of Generate backend data structure: time 0.06224/5.691, allocations: 20.91 MB / 3.009 GB, free: 8.102 MB / 1.795 GB Notification: Performance of prepare preOptimizeDAE: time 6.467e-05/5.691, allocations: 8.625 kB / 3.009 GB, free: 8.094 MB / 1.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007322/5.698, allocations: 1.634 MB / 3.01 GB, free: 6.449 MB / 1.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01525/5.714, allocations: 2.267 MB / 3.013 GB, free: 4.16 MB / 1.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04143/5.755, allocations: 18.02 MB / 3.03 GB, free: 2.449 MB / 1.811 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008915/5.756, allocations: 0.9778 MB / 3.031 GB, free: 1.469 MB / 1.811 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003619/5.76, allocations: 1.284 MB / 3.032 GB, free: 192 kB / 1.811 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06178/5.821, allocations: 14.5 MB / 3.047 GB, free: 1.027 MB / 1.826 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008839/5.822, allocations: 39.59 kB / 3.047 GB, free: 0.9883 MB / 1.826 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005706/5.828, allocations: 0.5303 MB / 3.047 GB, free: 472 kB / 1.826 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006017/5.829, allocations: 347.9 kB / 3.047 GB, free: 124 kB / 1.826 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7137/6.543, allocations: 10.08 MB / 3.057 GB, free: 0.9415 GB / 1.826 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1391/6.682, allocations: 74.72 MB / 3.13 GB, free: 0.8889 GB / 1.826 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/6.694, allocations: 4.563 MB / 3.135 GB, free: 0.8863 GB / 1.826 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006164/6.701, allocations: 2.449 MB / 3.137 GB, free: 0.8849 GB / 1.826 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1109/6.811, allocations: 51.49 MB / 3.187 GB, free: 0.8418 GB / 1.826 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002658/6.812, allocations: 117.1 kB / 3.188 GB, free: 0.8417 GB / 1.826 GB Notification: Performance of pre-optimization done (n=412): time 1.346e-05/6.812, allocations: 2.781 kB / 3.188 GB, free: 0.8417 GB / 1.826 GB Notification: Performance of matching and sorting (n=412): time 0.0286/6.84, allocations: 6.993 MB / 3.194 GB, free: 0.8383 GB / 1.826 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002444/6.841, allocations: 0.782 MB / 3.195 GB, free: 0.8374 GB / 1.826 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05268/6.893, allocations: 16.44 MB / 3.211 GB, free: 0.8292 GB / 1.826 GB Notification: Performance of collectPreVariables (initialization): time 0.001756/6.895, allocations: 145.3 kB / 3.211 GB, free: 0.8291 GB / 1.826 GB Notification: Performance of collectInitialEqns (initialization): time 0.01449/6.91, allocations: 8.65 MB / 3.22 GB, free: 0.8216 GB / 1.826 GB Notification: Performance of collectInitialBindings (initialization): time 0.003277/6.913, allocations: 1.46 MB / 3.221 GB, free: 0.8204 GB / 1.826 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006575/6.92, allocations: 1.444 MB / 3.223 GB, free: 0.8196 GB / 1.826 GB Notification: Performance of setup shared object (initialization): time 7.076e-05/6.92, allocations: 306.6 kB / 3.223 GB, free: 0.8193 GB / 1.826 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006292/6.926, allocations: 2.043 MB / 3.225 GB, free: 0.8183 GB / 1.826 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01152/6.938, allocations: 5.094 MB / 3.23 GB, free: 0.8136 GB / 1.826 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/6.953, allocations: 6.87 MB / 3.237 GB, free: 0.8068 GB / 1.826 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001765/6.953, allocations: 24 kB / 3.237 GB, free: 0.8068 GB / 1.826 GB Notification: Performance of matching and sorting (n=821) (initialization): time 0.03089/6.984, allocations: 8.155 MB / 3.245 GB, free: 0.7989 GB / 1.826 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/6.984, allocations: 39.94 kB / 3.245 GB, free: 0.7989 GB / 1.826 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001532/6.984, allocations: 80.06 kB / 3.245 GB, free: 0.7988 GB / 1.826 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001752/6.984, allocations: 111.9 kB / 3.245 GB, free: 0.7987 GB / 1.826 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0089/6.993, allocations: 1.408 MB / 3.246 GB, free: 0.7973 GB / 1.826 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000273/6.994, allocations: 159.4 kB / 3.246 GB, free: 0.7971 GB / 1.826 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02732/7.021, allocations: 1.847 MB / 3.248 GB, free: 0.7954 GB / 1.826 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002526/7.024, allocations: 379.9 kB / 3.248 GB, free: 0.795 GB / 1.826 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 341 * Number of states: 0 () * Number of discrete variables: 4 (senDifEntFlo1.state_b1_inflow.phase,senDifEntFlo1.state_a1_inflow.phase,senDifEntFlo.state_b1_inflow.phase,senDifEntFlo.state_a1_inflow.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (821): * Single equations (assignments): 821 * 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.0147/7.038, allocations: 3.552 MB / 3.252 GB, free: 0.7915 GB / 1.826 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00831/7.047, allocations: 1.655 MB / 3.254 GB, free: 0.7899 GB / 1.826 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02455/7.071, allocations: 7.558 MB / 3.261 GB, free: 0.7826 GB / 1.826 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000282/7.072, allocations: 83.94 kB / 3.261 GB, free: 0.7825 GB / 1.826 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.676e-05/7.072, allocations: 8 kB / 3.261 GB, free: 0.7825 GB / 1.826 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006645/7.078, allocations: 3.84 MB / 3.265 GB, free: 0.7785 GB / 1.826 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07779/7.156, allocations: 28.68 MB / 3.293 GB, free: 0.7501 GB / 1.826 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000132/7.156, allocations: 35.98 kB / 3.293 GB, free: 0.7501 GB / 1.826 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00504/7.161, allocations: 0.7847 MB / 3.294 GB, free: 0.7493 GB / 1.826 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/7.162, allocations: 48 kB / 3.294 GB, free: 0.7493 GB / 1.826 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001012/7.163, allocations: 155.9 kB / 3.294 GB, free: 0.7491 GB / 1.826 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.433e-05/7.163, allocations: 67.8 kB / 3.294 GB, free: 0.749 GB / 1.826 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-05/7.163, allocations: 47.81 kB / 3.294 GB, free: 0.749 GB / 1.826 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02343/7.186, allocations: 11.95 MB / 3.306 GB, free: 0.7367 GB / 1.826 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0126/7.199, allocations: 2.829 MB / 3.308 GB, free: 0.7339 GB / 1.826 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008376/7.207, allocations: 155.6 kB / 3.308 GB, free: 0.7338 GB / 1.826 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01868/7.226, allocations: 0.6225 MB / 3.309 GB, free: 0.7332 GB / 1.826 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001415/7.227, allocations: 390.8 kB / 3.309 GB, free: 0.7328 GB / 1.826 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00101/7.228, allocations: 259.8 kB / 3.31 GB, free: 0.7326 GB / 1.826 GB Notification: Performance of sorting global known variables: time 0.03656/7.265, allocations: 11.7 MB / 3.321 GB, free: 0.7212 GB / 1.826 GB Notification: Performance of sort global known variables: time 7.91e-07/7.265, allocations: 0 / 3.321 GB, free: 0.7212 GB / 1.826 GB Notification: Performance of remove unused functions: time 0.02609/7.291, allocations: 5.294 MB / 3.326 GB, free: 0.7163 GB / 1.826 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 141 * Number of states: 15 (buiTesFacMul.bui.loaHea.vol.dynBal.U,buiTesFacMul.bui.loaCoo.vol.dynBal.U,buiTesOutETSBui.bui.loaHea.vol.dynBal.U,buiTesOutETSBui.bui.loaCoo.vol.dynBal.U,buiTesOutETS.bui.loaHea.vol.dynBal.U,buiTesOutETS.bui.loaCoo.vol.dynBal.U,buiComGen5.bui.loaHea.vol.dynBal.U,buiComGen5.bui.loaCoo.vol.dynBal.U,buiHeaGen2to4.bui.loaHea.vol.dynBal.U,buiComGen2to4.bui.loaHea.vol.dynBal.U,buiComGen2to4.bui.loaCoo.vol.dynBal.U,buiCoo.bui.loaCoo.vol.dynBal.U,buiComGen1.bui.loaHea.vol.dynBal.U,buiComGen1.bui.loaCoo.vol.dynBal.U,buiHeaGen1.bui.loaHea.vol.dynBal.U) * Number of discrete variables: 4 ($cse12.phase,$cse12.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (478): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 66 * 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.03055/7.322, allocations: 16.68 MB / 3.343 GB, free: 0.6999 GB / 1.826 GB Notification: Performance of simCode: created initialization part: time 0.009975/7.332, allocations: 5.849 MB / 3.348 GB, free: 0.6942 GB / 1.826 GB Notification: Performance of simCode: created event and clocks part: time 3.782e-05/7.332, allocations: 9.438 kB / 3.348 GB, free: 0.6942 GB / 1.826 GB Notification: Performance of simCode: created simulation system equations: time 0.003654/7.336, allocations: 2.586 MB / 3.351 GB, free: 0.6917 GB / 1.826 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05636/7.392, allocations: 10.07 MB / 3.361 GB, free: 0.6827 GB / 1.826 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6438/8.036, allocations: 278.2 MB / 3.632 GB, free: 400.4 MB / 1.826 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01309/8.049, allocations: 7.782 MB / 3.64 GB, free: 392.6 MB / 1.826 GB Notification: Performance of simCode: alias equations: time 0.01749/8.066, allocations: 3.215 MB / 3.643 GB, free: 389.5 MB / 1.826 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01471/8.081, allocations: 8.056 MB / 3.651 GB, free: 381.4 MB / 1.826 GB Notification: Performance of SimCode: time 1.513e-06/8.081, allocations: 0 / 3.651 GB, free: 381.4 MB / 1.826 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.533/12.61, allocations: 499.6 MB / 4.139 GB, free: 0.8693 GB / 1.826 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003438/12.61, allocations: 265.6 kB / 4.139 GB, free: 0.869 GB / 1.826 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.43/45.04, allocations: 1.969 kB / 4.139 GB, free: 0.869 GB / 1.826 GB (rm -f Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS_res.mat --tempDir=temp_Buildings_latest_Buildings_DHC_Loads_BaseClasses_Validation_BuildingWithETS_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_DHC_Loads_BaseClasses_Validation_BuildingWithETS.fmu > Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Loads_BaseClasses_Validation_BuildingWithETS.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BuildingWithETS.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches