Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.0008344/0.0008341, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0008524/0.0008522, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.45/2.45, allocations: 390.9 MB / 0.666 GB, free: 2.469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003649, allocations: 8 kB / 0.8153 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6836/0.6839, allocations: 142.4 MB / 0.9544 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.183/0.867, allocations: 159.1 MB / 1.11 GB, free: 68 kB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01906/0.8861, allocations: 14.4 MB / 1.124 GB, free: 1.633 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.8876, allocations: 27.81 kB / 1.124 GB, free: 1.605 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.8889, allocations: 409.2 kB / 1.124 GB, free: 1.203 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003654/0.8926, allocations: 1.163 MB / 1.125 GB, free: 40 kB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003643/0.8963, allocations: 1.243 MB / 1.127 GB, free: 14.8 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004019/0.9003, allocations: 2.789 MB / 1.129 GB, free: 12 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002183/0.9025, allocations: 1.396 MB / 1.131 GB, free: 10.57 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.9046, allocations: 1.012 MB / 1.132 GB, free: 9.559 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001445/0.9061, allocations: 0.8048 MB / 1.133 GB, free: 8.75 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.9063, allocations: 48 kB / 1.133 GB, free: 8.703 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002362/0.9087, allocations: 0.8384 MB / 1.133 GB, free: 7.863 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004185/0.9091, allocations: 394.4 kB / 1.134 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004759/0.9096, allocations: 348.7 kB / 1.134 GB, free: 7.129 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002574/0.9122, allocations: 2.116 MB / 1.136 GB, free: 5.008 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.9122, allocations: 0 / 1.136 GB, free: 5.008 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.843e-06/0.9122, allocations: 0 / 1.136 GB, free: 5.008 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.315e-05/0.9122, allocations: 0 / 1.136 GB, free: 5.008 MB / 0.8887 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.003871/0.9161, allocations: 1.917 MB / 1.138 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.9162, allocations: 8.031 kB / 1.138 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00302/0.9192, allocations: 469.2 kB / 1.138 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.9213, allocations: 1.067 MB / 1.14 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.9215, allocations: 127.2 kB / 1.14 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/0.9217, allocations: 156 kB / 1.14 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003417/0.9251, allocations: 1.774 MB / 1.142 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.9252, allocations: 0 / 1.142 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.9253, allocations: 72 kB / 1.142 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.438e-05/0.9254, allocations: 51.97 kB / 1.142 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00328/0.9287, allocations: 1.764 MB / 1.143 GB, free: 13.43 MB / 0.9044 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.009256/0.938, allocations: 5.888 MB / 1.149 GB, free: 7.254 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.9407, allocations: 1.561 MB / 1.151 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009753/0.9417, allocations: 0.5671 MB / 1.151 GB, free: 5.066 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009394/0.9426, allocations: 0.8906 MB / 1.152 GB, free: 3.992 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.944, allocations: 0.8088 MB / 1.153 GB, free: 3.16 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=126): time 2.845e-06/0.9441, allocations: 0 / 1.153 GB, free: 3.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=126): time 0.004536/0.9486, allocations: 1.883 MB / 1.155 GB, free: 1.254 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.9487, allocations: 200.9 kB / 1.155 GB, free: 1.016 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/0.9501, allocations: 0.9832 MB / 1.156 GB, free: 16 kB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001562/0.9503, allocations: 49.7 kB / 1.156 GB, free: 15.96 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005658/0.9509, allocations: 0.6528 MB / 1.157 GB, free: 15.3 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003771/0.9513, allocations: 421.9 kB / 1.157 GB, free: 14.88 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/0.9513, allocations: 24 kB / 1.157 GB, free: 14.86 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.9515, allocations: 357.9 kB / 1.157 GB, free: 14.5 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009266/0.9524, allocations: 450.4 kB / 1.158 GB, free: 14.06 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.9535, allocations: 0.5903 MB / 1.158 GB, free: 13.43 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.9545, allocations: 0.5139 MB / 1.159 GB, free: 12.92 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.9545, allocations: 3.938 kB / 1.159 GB, free: 12.92 MB / 0.92 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002975/0.9575, allocations: 1.347 MB / 1.16 GB, free: 11.56 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.9575, allocations: 8.156 kB / 1.16 GB, free: 11.55 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.9576, allocations: 4 kB / 1.16 GB, free: 11.55 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000539/0.9581, allocations: 88.77 kB / 1.16 GB, free: 11.46 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.9595, allocations: 291.6 kB / 1.161 GB, free: 11.17 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/0.9616, allocations: 1.532 MB / 1.162 GB, free: 9.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.9633, allocations: 172.7 kB / 1.162 GB, free: 9.332 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.9634, allocations: 55.95 kB / 1.162 GB, free: 9.277 MB / 0.92 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.001105/0.9645, allocations: 383.8 kB / 1.163 GB, free: 8.895 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003681/0.9649, allocations: 138.3 kB / 1.163 GB, free: 8.758 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.9685, allocations: 1.621 MB / 1.164 GB, free: 7.117 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.9686, allocations: 16.09 kB / 1.164 GB, free: 7.102 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.9686, allocations: 3.984 kB / 1.164 GB, free: 7.098 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.9686, allocations: 7.969 kB / 1.164 GB, free: 7.09 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005417/0.974, allocations: 3.153 MB / 1.167 GB, free: 3.883 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.9741, allocations: 0 / 1.167 GB, free: 3.883 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.9753, allocations: 271.7 kB / 1.168 GB, free: 3.617 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004922/0.9758, allocations: 84.78 kB / 1.168 GB, free: 3.531 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-05/0.9759, allocations: 43.91 kB / 1.168 GB, free: 3.488 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.9778, allocations: 1.559 MB / 1.169 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.9778, allocations: 0 / 1.169 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004195/0.982, allocations: 2.18 MB / 1.171 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/0.983, allocations: 414.8 kB / 1.172 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003141/0.9833, allocations: 28 kB / 1.172 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.9846, allocations: 132.5 kB / 1.172 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.9849, allocations: 93.17 kB / 1.172 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.985, allocations: 59.95 kB / 1.172 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0009625/0.986, allocations: 0.6722 MB / 1.173 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.986, allocations: 4 kB / 1.173 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001443/0.9874, allocations: 0.5298 MB / 1.173 GB, free: 13.64 MB / 0.9356 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001601/0.989, allocations: 0.7005 MB / 1.174 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00262/0.9917, allocations: 1.271 MB / 1.175 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.9917, allocations: 448 / 1.175 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.9931, allocations: 0.7752 MB / 1.176 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/0.9957, allocations: 0.5159 MB / 1.177 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00683/1.003, allocations: 3.718 MB / 1.18 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009048/1.004, allocations: 1.311 MB / 1.181 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001883/1.005, allocations: 426.8 kB / 1.182 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004524/1.006, allocations: 151.3 kB / 1.182 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of SimCode: time 9.32e-07/1.006, allocations: 0 / 1.182 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of Templates: time 0.04231/1.048, allocations: 24.25 MB / 1.206 GB, free: 12.94 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.makefile (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & ./Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches