Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.Boiler.System1.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.Tutorial.Boiler.System1,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_Boiler_System1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.Boiler.System1,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_Boiler_System1",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.006918/0.006919, allocations: 101 kB / 15.73 MB, free: 6.055 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.001579/0.001579, allocations: 196.6 kB / 16.68 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002343/0.002343, allocations: 67.89 kB / 0.9504 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.805/0.8073, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.Boiler.System1): time 0.1989/1.006, allocations: 162.9 MB / 1.247 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.006774/1.013, allocations: 3.481 MB / 1.25 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009982/1.014, allocations: 23.88 kB / 1.25 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001007/1.015, allocations: 282.5 kB / 1.25 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00262/1.018, allocations: 0.8906 MB / 1.251 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001381/1.019, allocations: 490.4 kB / 1.252 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001547/1.021, allocations: 1.087 MB / 1.253 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005422/1.021, allocations: 332.6 kB / 1.253 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008059/1.022, allocations: 418.3 kB / 1.253 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/1.023, allocations: 353.5 kB / 1.254 GB, free: 3.562 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001162/1.023, allocations: 43.94 kB / 1.254 GB, free: 3.52 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/1.025, allocations: 0.6938 MB / 1.254 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002325/1.025, allocations: 171.5 kB / 1.255 GB, free: 2.656 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003777/1.025, allocations: 278.6 kB / 1.255 GB, free: 2.383 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001647/1.027, allocations: 0.9348 MB / 1.256 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/1.027, allocations: 0 / 1.256 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.683e-06/1.027, allocations: 0 / 1.256 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.533e-05/1.027, allocations: 0 / 1.256 GB, free: 1.445 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001671/1.029, allocations: 0.8679 MB / 1.257 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/1.029, allocations: 12.03 kB / 1.257 GB, free: 0.5117 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.977e-05/1.029, allocations: 70.53 kB / 1.257 GB, free: 444 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/1.03, allocations: 155.2 kB / 1.257 GB, free: 288 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009/1.031, allocations: 0.4931 MB / 1.257 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/1.031, allocations: 28.56 kB / 1.257 GB, free: 15.72 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-05/1.031, allocations: 28 kB / 1.257 GB, free: 15.69 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/1.032, allocations: 323.6 kB / 1.258 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/1.032, allocations: 3.938 kB / 1.258 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/1.032, allocations: 12 kB / 1.258 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/1.032, allocations: 8.562 kB / 1.258 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/1.032, allocations: 222.1 kB / 1.258 GB, free: 15.12 MB / 0.9981 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.001997/1.034, allocations: 1.414 MB / 1.259 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003957/1.035, allocations: 211.6 kB / 1.259 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/1.035, allocations: 112.8 kB / 1.26 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.831e-05/1.035, allocations: 0 / 1.26 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003162/1.035, allocations: 166.1 kB / 1.26 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=26): time 1.603e-06/1.035, allocations: 0 / 1.26 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29): time 0.002983/1.038, allocations: 1.094 MB / 1.261 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/1.038, allocations: 63.28 kB / 1.261 GB, free: 11.85 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005095/1.039, allocations: 461.9 kB / 1.261 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/1.039, allocations: 41.7 kB / 1.261 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/1.039, allocations: 236.2 kB / 1.262 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.778e-05/1.039, allocations: 110.4 kB / 1.262 GB, free: 11 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/1.039, allocations: 70.08 kB / 1.262 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001233/1.039, allocations: 358.8 kB / 1.262 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/1.04, allocations: 124.7 kB / 1.262 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/1.04, allocations: 182.9 kB / 1.262 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004608/1.04, allocations: 299.9 kB / 1.263 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/1.04, allocations: 4 kB / 1.263 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009835/1.041, allocations: 490.1 kB / 1.263 GB, free: 9.445 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/1.041, allocations: 4 kB / 1.263 GB, free: 9.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/1.041, allocations: 4 kB / 1.263 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003512/1.042, allocations: 88.89 kB / 1.263 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/1.042, allocations: 67.91 kB / 1.263 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/1.044, allocations: 1.907 MB / 1.265 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003105/1.044, allocations: 8.031 kB / 1.265 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/1.044, allocations: 24.05 kB / 1.265 GB, free: 7.203 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.timTab.tab.nextTimeEvent,$whenCondition1,timTab.tab.nextTimeEventScaled,$PRE.timTab.tab.nextTimeEventScaled,timTab.tab.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002032/1.044, allocations: 192.6 kB / 1.265 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.51e-05/1.044, allocations: 43.53 kB / 1.265 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/1.045, allocations: 56.61 kB / 1.265 GB, free: 6.91 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/1.045, allocations: 4 kB / 1.265 GB, free: 6.906 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.045, allocations: 0 / 1.265 GB, free: 6.906 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/1.045, allocations: 0 / 1.265 GB, free: 6.906 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/1.046, allocations: 0.9681 MB / 1.266 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.046, allocations: 0 / 1.266 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/1.046, allocations: 59.97 kB / 1.266 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003056/1.047, allocations: 84.72 kB / 1.267 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.653e-05/1.047, allocations: 15.88 kB / 1.267 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/1.048, allocations: 1.652 MB / 1.268 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/1.048, allocations: 0 / 1.268 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009839/1.049, allocations: 0.5713 MB / 1.269 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/1.049, allocations: 152.5 kB / 1.269 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.983e-05/1.049, allocations: 8 kB / 1.269 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/1.05, allocations: 15.92 kB / 1.269 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.178e-05/1.05, allocations: 23.91 kB / 1.269 GB, free: 3.117 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/1.05, allocations: 8 kB / 1.269 GB, free: 3.109 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003275/1.05, allocations: 315.1 kB / 1.269 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/1.05, allocations: 0 / 1.269 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000518/1.051, allocations: 124 kB / 1.269 GB, free: 2.68 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (vol.dynBal.medium.Xi[1],vol.dynBal.m,heaCap.T) * Number of discrete variables: 3 ($whenCondition1,timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled) * Number of discrete states: 2 (timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002133/1.053, allocations: 1.439 MB / 1.271 GB, free: 1.371 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007208/1.054, allocations: 418.5 kB / 1.271 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/1.054, allocations: 0 / 1.271 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000309/1.054, allocations: 254.5 kB / 1.271 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/1.055, allocations: 240.1 kB / 1.272 GB, free: 476 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005685/1.061, allocations: 4.131 MB / 1.276 GB, free: 12.22 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/1.061, allocations: 0.8504 MB / 1.276 GB, free: 11.34 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002992/1.061, allocations: 80.33 kB / 1.277 GB, free: 11.26 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/1.062, allocations: 155.4 kB / 1.277 GB, free: 11.11 MB / 1.014 GB Notification: Performance of SimCode: time 2.4e-07/1.062, allocations: 0 / 1.277 GB, free: 11.11 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03808/1.1, allocations: 12.89 MB / 1.289 GB, free: 14.45 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/11.28, allocations: 10.77 kB / 1.289 GB, free: 14.44 MB / 1.029 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.Boiler.System1.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.Boiler.System1.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.Boiler.System1.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.Boiler.System1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.Boiler.System1_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_Boiler_System1_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_Boiler_System1.fmu > Buildings_9_Buildings.Examples.Tutorial.Boiler.System1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.Boiler.System1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_Boiler_System1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.Tutorial.Boiler.System1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,vol.T_start,vol.T,TOut.T Variables in the result:QRooInt_flow,TOut.T,TOut.port.Q_flow,TOut.port.T,V,der(heaCap.T),der(vol.dynBal.m),der(vol.dynBal.medium.Xi[1]),heaCap.C,heaCap.T,heaCap.der_T,heaCap.port.Q_flow,heaCap.port.T,mA_flow_nominal,preHea.Q_flow,preHea.T_ref,preHea.alpha,preHea.port.Q_flow,preHea.port.T,theCon.G,theCon.Q_flow,theCon.dT,theCon.port_a.Q_flow,theCon.port_a.T,theCon.port_b.Q_flow,theCon.port_b.T,timTab.extrapolation,timTab.offset[1],timTab.smoothness,timTab.table[1,1],timTab.table[1,2],timTab.table[2,1],timTab.table[2,2],timTab.table[3,1],timTab.table[3,2],timTab.timeScale,timTab.y[1],time,vol.T,vol.T_start,vol.U,vol.V,vol.X_start[1],vol.X_start[2],vol.Xi[1],vol.allowFlowReversal,vol.dynBal.m,vol.dynBal.medium.Xi[1],vol.energyDynamics,vol.heatPort.Q_flow,vol.heatPort.T,vol.initialize_p,vol.m,vol.mSenFac,vol.mXi[1],vol.m_flow_nominal,vol.m_flow_small,vol.massDynamics,vol.nPorts,vol.p,vol.p_start,vol.substanceDynamics,vol.traceDynamics,vol.use_C_flow