Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp") translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 180.9 kB / 16.92 MB, free: 6.652 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.454/1.454, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.788/2.788, allocations: 462.7 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004136, allocations: 7.594 kB / 0.9034 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3524, allocations: 159.6 MB / 1.059 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1918/0.5442, allocations: 171.5 MB / 1.227 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02216/0.5664, allocations: 15.48 MB / 1.242 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002031/0.5685, allocations: 27.81 kB / 1.242 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00167/0.5702, allocations: 0.5125 MB / 1.242 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004903/0.5751, allocations: 1.426 MB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004707/0.5799, allocations: 1.493 MB / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004862/0.5847, allocations: 3.335 MB / 1.249 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003198/0.5879, allocations: 1.569 MB / 1.25 GB, free: 0.9336 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.7951/1.383, allocations: 1.081 MB / 1.251 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002317/1.385, allocations: 0.8634 MB / 1.252 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004063/1.386, allocations: 49.94 kB / 1.252 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003781/1.39, allocations: 1.341 MB / 1.253 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005481/1.39, allocations: 402.7 kB / 1.254 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001398/1.392, allocations: 0.8538 MB / 1.255 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003283/1.395, allocations: 2.182 MB / 1.257 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/1.395, allocations: 1.562 kB / 1.257 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.874e-06/1.395, allocations: 0 / 1.257 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.858e-05/1.395, allocations: 0 / 1.257 GB, free: 5.254 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.004022/1.399, allocations: 1.917 MB / 1.259 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/1.399, allocations: 15 kB / 1.259 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003128/1.402, allocations: 474.2 kB / 1.259 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001898/1.404, allocations: 1.096 MB / 1.26 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/1.404, allocations: 128.6 kB / 1.26 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002237/1.404, allocations: 159.4 kB / 1.26 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003382/1.408, allocations: 1.793 MB / 1.262 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.547e-05/1.408, allocations: 0 / 1.262 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/1.408, allocations: 73.17 kB / 1.262 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.955e-05/1.408, allocations: 50.28 kB / 1.262 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/1.411, allocations: 1.778 MB / 1.264 GB, free: 3.441 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.01049/1.422, allocations: 6.203 MB / 1.27 GB, free: 16.54 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003235/1.425, allocations: 1.572 MB / 1.272 GB, free: 16.21 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/1.426, allocations: 0.5753 MB / 1.272 GB, free: 16.2 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001014/1.427, allocations: 0.8848 MB / 1.273 GB, free: 15.25 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001726/1.429, allocations: 0.8079 MB / 1.274 GB, free: 15.17 MB / 1.014 GB Notification: Performance of pre-optimization done (n=126): time 2.956e-06/1.429, allocations: 0 / 1.274 GB, free: 15.17 MB / 1.014 GB Notification: Performance of matching and sorting (n=126): time 0.00612/1.435, allocations: 1.895 MB / 1.276 GB, free: 14.95 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002467/1.435, allocations: 194.7 kB / 1.276 GB, free: 14.73 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/1.438, allocations: 0.9881 MB / 1.277 GB, free: 14.57 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.000214/1.438, allocations: 57.05 kB / 1.277 GB, free: 14.54 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009125/1.439, allocations: 0.6544 MB / 1.277 GB, free: 14.27 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/1.439, allocations: 421.6 kB / 1.278 GB, free: 14 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/1.44, allocations: 99.97 kB / 1.278 GB, free: 13.98 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002081/1.44, allocations: 355.9 kB / 1.278 GB, free: 13.68 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/1.441, allocations: 454.2 kB / 1.279 GB, free: 13.67 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/1.442, allocations: 0.6017 MB / 1.279 GB, free: 13.57 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002441/1.445, allocations: 1.045 MB / 1.28 GB, free: 13.48 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.445, allocations: 0 / 1.28 GB, free: 13.48 MB / 1.014 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00375/1.448, allocations: 1.357 MB / 1.282 GB, free: 13.33 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/1.448, allocations: 11.17 kB / 1.282 GB, free: 13.33 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/1.449, allocations: 2.125 kB / 1.282 GB, free: 13.33 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006722/1.449, allocations: 86 kB / 1.282 GB, free: 13.32 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/1.451, allocations: 292.9 kB / 1.282 GB, free: 13.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/1.453, allocations: 1.545 MB / 1.284 GB, free: 12.03 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/1.455, allocations: 179.5 kB / 1.284 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/1.455, allocations: 53.75 kB / 1.284 GB, free: 11.96 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (144): * Single equations (assignments): 143 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001111/1.456, allocations: 383.8 kB / 1.284 GB, free: 11.85 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004972/1.457, allocations: 138.8 kB / 1.284 GB, free: 11.78 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004105/1.461, allocations: 1.616 MB / 1.286 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/1.461, allocations: 12.56 kB / 1.286 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/1.461, allocations: 5.734 kB / 1.286 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/1.461, allocations: 5.672 kB / 1.286 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007044/1.468, allocations: 3.183 MB / 1.289 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/1.468, allocations: 0 / 1.289 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001339/1.469, allocations: 275.5 kB / 1.289 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005741/1.47, allocations: 82.86 kB / 1.289 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/1.47, allocations: 40.58 kB / 1.289 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/1.472, allocations: 1.558 MB / 1.291 GB, free: 9.914 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.472, allocations: 1.188 kB / 1.291 GB, free: 9.914 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00489/1.477, allocations: 2.193 MB / 1.293 GB, free: 9.645 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/1.478, allocations: 413.3 kB / 1.293 GB, free: 9.461 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004704/1.478, allocations: 28.91 kB / 1.293 GB, free: 9.457 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/1.48, allocations: 137.8 kB / 1.294 GB, free: 9.445 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/1.48, allocations: 95.59 kB / 1.294 GB, free: 9.441 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/1.481, allocations: 61.64 kB / 1.294 GB, free: 9.441 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001364/1.482, allocations: 0.6783 MB / 1.294 GB, free: 9.332 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.81e-07/1.482, allocations: 0 / 1.294 GB, free: 9.332 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002161/1.484, allocations: 0.5579 MB / 1.295 GB, free: 9.238 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (ori1.mExc,ori2.mExc) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002262/1.486, allocations: 0.7108 MB / 1.296 GB, free: 9.031 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003033/1.489, allocations: 1.281 MB / 1.297 GB, free: 8.891 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/1.489, allocations: 3.25 kB / 1.297 GB, free: 8.891 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001451/1.491, allocations: 0.7576 MB / 1.298 GB, free: 8.766 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/1.494, allocations: 0.5303 MB / 1.298 GB, free: 8.727 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007071/1.501, allocations: 3.726 MB / 1.302 GB, free: 6.84 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/1.503, allocations: 1.307 MB / 1.303 GB, free: 6.102 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007417/1.503, allocations: 171.6 kB / 1.303 GB, free: 6.09 MB / 1.014 GB Notification: Performance of SimCode: time 6.11e-07/1.503, allocations: 3 kB / 1.303 GB, free: 6.09 MB / 1.014 GB Notification: Performance of Templates: time 0.04749/1.551, allocations: 31.62 MB / 1.334 GB, free: 12.23 MB / 1.029 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches