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.001164/0.001164, allocations: 99.03 kB / 16.02 MB, free: 76 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.001487/0.001487, allocations: 182.6 kB / 16.92 MB, free: 6.918 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.365/1.365, allocations: 223.3 MB / 241 MB, free: 5.242 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.422/2.422, allocations: 390.9 MB / 0.667 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7183/0.7187, allocations: 142.4 MB / 0.9557 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1929/0.9116, allocations: 170.6 MB / 1.122 GB, free: 4.207 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02179/0.9335, allocations: 15.36 MB / 1.137 GB, free: 4.805 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001826/0.9353, allocations: 31.81 kB / 1.137 GB, free: 4.773 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002052/0.9374, allocations: 0.4894 MB / 1.138 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004846/0.9423, allocations: 1.351 MB / 1.139 GB, free: 2.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0049/0.9472, allocations: 1.476 MB / 1.141 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004751/0.952, allocations: 3.184 MB / 1.144 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.9552, allocations: 1.615 MB / 1.145 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005225/0.9604, allocations: 1.075 MB / 1.146 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001721/0.9622, allocations: 0.8356 MB / 1.147 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004789/0.9627, allocations: 55.94 kB / 1.147 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003328/0.966, allocations: 1.333 MB / 1.148 GB, free: 9.32 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0007404/0.9668, allocations: 402.3 kB / 1.149 GB, free: 8.926 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001631/0.9684, allocations: 0.8171 MB / 1.15 GB, free: 8.098 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003647/0.9721, allocations: 2.147 MB / 1.152 GB, free: 5.945 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.9721, allocations: 0 / 1.152 GB, free: 5.945 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.325e-06/0.9721, allocations: 4 kB / 1.152 GB, free: 5.941 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001145/0.9722, allocations: 0 / 1.152 GB, free: 5.941 MB / 0.9044 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.00454/0.9768, allocations: 1.893 MB / 1.154 GB, free: 3.984 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.9768, allocations: 8.031 kB / 1.154 GB, free: 3.977 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003492/0.9803, allocations: 473.2 kB / 1.154 GB, free: 3.512 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/0.9826, allocations: 1.109 MB / 1.155 GB, free: 2.359 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.9828, allocations: 123.2 kB / 1.155 GB, free: 2.238 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004099/0.9832, allocations: 160 kB / 1.155 GB, free: 2.082 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00414/0.9874, allocations: 1.784 MB / 1.157 GB, free: 224 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.513e-05/0.9874, allocations: 4 kB / 1.157 GB, free: 220 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.9877, allocations: 68 kB / 1.157 GB, free: 152 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.994e-05/0.9877, allocations: 47.98 kB / 1.157 GB, free: 104 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003473/0.9912, allocations: 1.784 MB / 1.159 GB, free: 14.31 MB / 0.92 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.01028/1.002, allocations: 5.896 MB / 1.165 GB, free: 8.129 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002978/1.005, allocations: 1.565 MB / 1.166 GB, free: 6.504 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/1.006, allocations: 0.566 MB / 1.167 GB, free: 5.938 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00095/1.007, allocations: 0.8906 MB / 1.168 GB, free: 4.859 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001587/1.008, allocations: 0.8127 MB / 1.169 GB, free: 4.027 MB / 0.92 GB Notification: Performance of pre-optimization done (n=126): time 4.097e-06/1.008, allocations: 0 / 1.169 GB, free: 4.027 MB / 0.92 GB Notification: Performance of matching and sorting (n=126): time 0.004895/1.013, allocations: 1.902 MB / 1.17 GB, free: 2.098 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/1.013, allocations: 196.9 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/1.015, allocations: 0.9833 MB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001818/1.015, allocations: 53.7 kB / 1.172 GB, free: 0.8047 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005651/1.015, allocations: 0.6528 MB / 1.172 GB, free: 144 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004036/1.016, allocations: 422 kB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/1.016, allocations: 105.7 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.016, allocations: 341.9 kB / 1.173 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009228/1.017, allocations: 454.4 kB / 1.173 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/1.018, allocations: 0.602 MB / 1.174 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001957/1.02, allocations: 1.046 MB / 1.175 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/1.02, allocations: 3.938 kB / 1.175 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003068/1.023, allocations: 1.363 MB / 1.176 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/1.023, allocations: 11.94 kB / 1.176 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/1.023, allocations: 0 / 1.176 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006278/1.024, allocations: 88.92 kB / 1.176 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/1.025, allocations: 295.6 kB / 1.177 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/1.028, allocations: 1.539 MB / 1.178 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/1.029, allocations: 164.7 kB / 1.178 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/1.029, allocations: 59.95 kB / 1.178 GB, free: 9.453 MB / 0.9356 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.0008693/1.03, allocations: 379.2 kB / 1.179 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000268/1.03, allocations: 142.3 kB / 1.179 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003569/1.034, allocations: 1.622 MB / 1.181 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/1.034, allocations: 16 kB / 1.181 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/1.034, allocations: 0 / 1.181 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/1.034, allocations: 7.969 kB / 1.181 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005564/1.04, allocations: 3.165 MB / 1.184 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/1.04, allocations: 4 kB / 1.184 GB, free: 4.043 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/1.041, allocations: 271.7 kB / 1.184 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005523/1.042, allocations: 84.72 kB / 1.184 GB, free: 3.691 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.727e-05/1.042, allocations: 39.95 kB / 1.184 GB, free: 3.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/1.044, allocations: 1.559 MB / 1.186 GB, free: 1.949 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.044, allocations: 144 / 1.186 GB, free: 1.949 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004327/1.048, allocations: 2.196 MB / 1.188 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008093/1.049, allocations: 414.8 kB / 1.188 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/1.049, allocations: 24 kB / 1.188 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/1.05, allocations: 136 kB / 1.188 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/1.05, allocations: 93.17 kB / 1.188 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/1.05, allocations: 63.95 kB / 1.188 GB, free: 15 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000951/1.051, allocations: 0.68 MB / 1.189 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/1.051, allocations: 0 / 1.189 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001415/1.053, allocations: 0.5414 MB / 1.19 GB, free: 13.77 MB / 0.9512 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.001744/1.055, allocations: 0.7146 MB / 1.19 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002669/1.057, allocations: 1.283 MB / 1.192 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.057, allocations: 4.438 kB / 1.192 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001378/1.059, allocations: 0.7636 MB / 1.192 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/1.061, allocations: 0.5214 MB / 1.193 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006561/1.068, allocations: 3.857 MB / 1.197 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000871/1.069, allocations: 1.307 MB / 1.198 GB, free: 5.418 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006486/1.069, allocations: 163.3 kB / 1.198 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of SimCode: time 8.31e-07/1.069, allocations: 0 / 1.198 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of Templates: time 0.04378/1.113, allocations: 31.33 MB / 1.229 GB, free: 6.066 MB / 0.9825 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/jenkins1/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