Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00132/0.00132, allocations: 108 kB / 15.61 MB, free: 148 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.001548/0.001549, allocations: 195.5 kB / 16.53 MB, free: 6.656 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.578/2.578, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 60.03 kB / 0.8692 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6687/0.6701, allocations: 151.6 MB / 1.017 GB, free: 2.652 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1795/0.8497, allocations: 176.2 MB / 1.189 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01837/0.8681, allocations: 15.65 MB / 1.205 GB, free: 2.094 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.8697, allocations: 31.81 kB / 1.205 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001758/0.8715, allocations: 0.6244 MB / 1.205 GB, free: 1.434 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.004459/0.876, allocations: 1.567 MB / 1.207 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004063/0.8801, allocations: 1.663 MB / 1.208 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003739/0.8838, allocations: 2.898 MB / 1.211 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002285/0.8861, allocations: 1.844 MB / 1.213 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00296/0.8891, allocations: 1.376 MB / 1.214 GB, free: 8.051 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001083/0.8902, allocations: 1.05 MB / 1.215 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002645/0.8905, allocations: 196 kB / 1.216 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.8929, allocations: 1.31 MB / 1.217 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004511/0.8933, allocations: 0.5608 MB / 1.217 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000932/0.8943, allocations: 1.038 MB / 1.218 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003196/0.8975, allocations: 2.952 MB / 1.221 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.8975, allocations: 4 kB / 1.221 GB, free: 0.9219 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.302e-06/0.8975, allocations: 4 kB / 1.221 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.393e-05/0.8975, allocations: 0 / 1.221 GB, free: 0.918 MB / 0.9669 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.003971/0.9015, allocations: 2.298 MB / 1.224 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.9016, allocations: 12.03 kB / 1.224 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003075/0.9046, allocations: 465.1 kB / 1.224 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001708/0.9064, allocations: 1.097 MB / 1.225 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.9065, allocations: 123.2 kB / 1.225 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/0.9067, allocations: 160 kB / 1.225 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002865/0.9096, allocations: 1.788 MB / 1.227 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.9096, allocations: 0 / 1.227 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.9098, allocations: 72 kB / 1.227 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.657e-05/0.9098, allocations: 47.98 kB / 1.227 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002939/0.9128, allocations: 1.772 MB / 1.229 GB, free: 8.906 MB / 0.9825 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.008659/0.9215, allocations: 6.207 MB / 1.235 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002624/0.9241, allocations: 1.562 MB / 1.237 GB, free: 0.7148 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009895/0.9251, allocations: 0.5621 MB / 1.237 GB, free: 156 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009129/0.926, allocations: 0.8906 MB / 1.238 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.9275, allocations: 0.7894 MB / 1.239 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=126): time 2.685e-06/0.9275, allocations: 0 / 1.239 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of matching and sorting (n=126): time 0.004815/0.9323, allocations: 1.894 MB / 1.241 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.9324, allocations: 196.9 kB / 1.241 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.9338, allocations: 0.9795 MB / 1.242 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001222/0.9339, allocations: 53.7 kB / 1.242 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005307/0.9344, allocations: 0.6565 MB / 1.242 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003512/0.9348, allocations: 421.9 kB / 1.243 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003553/0.9352, allocations: 234.8 kB / 1.243 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.9353, allocations: 349.9 kB / 1.243 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008982/0.9362, allocations: 446.4 kB / 1.244 GB, free: 8.949 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.9373, allocations: 0.5981 MB / 1.244 GB, free: 8.312 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00193/0.9392, allocations: 1.035 MB / 1.245 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.9392, allocations: 0 / 1.245 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003079/0.9423, allocations: 1.359 MB / 1.247 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.9423, allocations: 4.625 kB / 1.247 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.9424, allocations: 7.984 kB / 1.247 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006002/0.943, allocations: 80.94 kB / 1.247 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.9443, allocations: 295.6 kB / 1.247 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.9466, allocations: 1.66 MB / 1.249 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.948, allocations: 130.9 kB / 1.249 GB, free: 3.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.9481, allocations: 55.97 kB / 1.249 GB, free: 3.516 MB / 0.9981 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.0008153/0.9489, allocations: 391.8 kB / 1.249 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.9492, allocations: 138.3 kB / 1.249 GB, free: 2.988 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003341/0.9526, allocations: 1.61 MB / 1.251 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.9526, allocations: 12 kB / 1.251 GB, free: 1.352 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.9526, allocations: 0 / 1.251 GB, free: 1.352 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.9526, allocations: 11.97 kB / 1.251 GB, free: 1.34 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5285/1.481, allocations: 3.154 MB / 1.254 GB, free: 231.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/1.481, allocations: 0.7812 kB / 1.254 GB, free: 231.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/1.483, allocations: 269.7 kB / 1.254 GB, free: 231.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004926/1.483, allocations: 74.52 kB / 1.254 GB, free: 231.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/1.483, allocations: 36.12 kB / 1.254 GB, free: 231.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001906/1.485, allocations: 1.67 MB / 1.256 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.485, allocations: 1.688 kB / 1.256 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00486/1.49, allocations: 2.179 MB / 1.258 GB, free: 229.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009199/1.491, allocations: 402.7 kB / 1.259 GB, free: 229.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/1.491, allocations: 27.61 kB / 1.259 GB, free: 229.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/1.492, allocations: 87.08 kB / 1.259 GB, free: 229.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/1.493, allocations: 93.73 kB / 1.259 GB, free: 229.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/1.493, allocations: 64.52 kB / 1.259 GB, free: 229.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001137/1.494, allocations: 0.6817 MB / 1.26 GB, free: 228.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.494, allocations: 0 / 1.26 GB, free: 228.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001777/1.496, allocations: 0.5535 MB / 1.26 GB, free: 228.7 MB / 0.9981 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.00176/1.497, allocations: 0.7018 MB / 1.261 GB, free: 228.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004819/1.502, allocations: 1.696 MB / 1.262 GB, free: 228 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/1.502, allocations: 4.125 kB / 1.262 GB, free: 228 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001824/1.504, allocations: 0.762 MB / 1.263 GB, free: 227.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003111/1.507, allocations: 0.5772 MB / 1.264 GB, free: 227.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/1.513, allocations: 2.882 MB / 1.267 GB, free: 226.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/1.514, allocations: 1.31 MB / 1.268 GB, free: 225.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001876/1.516, allocations: 439.3 kB / 1.268 GB, free: 225.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004294/1.516, allocations: 150.8 kB / 1.268 GB, free: 225.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/1.516, allocations: 0 / 1.268 GB, free: 225.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.04069/1.557, allocations: 26.9 MB / 1.295 GB, free: 209.2 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp.makefile (rm -f Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & ./Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches