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.002079/0.002079, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0026/0.0026, allocations: 191.5 kB / 16.14 MB, free: 6.684 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.589/1.589, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.768/2.768, allocations: 437 MB / 0.71 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003128/0.003128, allocations: 63.89 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6852/0.6883, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.2059/0.8943, allocations: 173.9 MB / 1.186 GB, free: 4.281 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02486/0.9192, allocations: 15.7 MB / 1.202 GB, free: 4.539 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003879/0.9231, allocations: 27.81 kB / 1.202 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004533/0.9277, allocations: 0.5165 MB / 1.202 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.006941/0.9348, allocations: 1.415 MB / 1.204 GB, free: 2.574 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005298/0.9401, allocations: 1.492 MB / 1.205 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.006259/0.9464, allocations: 3.331 MB / 1.208 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004571/0.951, allocations: 1.688 MB / 1.21 GB, free: 12 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006217/0.9572, allocations: 1.232 MB / 1.211 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002238/0.9595, allocations: 1.031 MB / 1.212 GB, free: 9.758 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.000582/0.9601, allocations: 112 kB / 1.212 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003836/0.9639, allocations: 1.4 MB / 1.214 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000921/0.9648, allocations: 490.2 kB / 1.214 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.002148/0.967, allocations: 0.9404 MB / 1.215 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.005975/0.973, allocations: 2.936 MB / 1.218 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.973, allocations: 0 / 1.218 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of FrontEnd: time 5.22e-06/0.973, allocations: 3.984 kB / 1.218 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001134/0.9731, allocations: 0 / 1.218 GB, free: 3.871 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.007183/0.9803, allocations: 2.308 MB / 1.22 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.228e-05/0.9804, allocations: 8.031 kB / 1.22 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003377/0.9838, allocations: 469.1 kB / 1.221 GB, free: 1.031 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002065/0.9859, allocations: 1.097 MB / 1.222 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.986, allocations: 119.2 kB / 1.222 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002336/0.9862, allocations: 156 kB / 1.222 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003357/0.9896, allocations: 1.788 MB / 1.224 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/0.9896, allocations: 4 kB / 1.224 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/0.9898, allocations: 75.84 kB / 1.224 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-05/0.9899, allocations: 47.98 kB / 1.224 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003282/0.9932, allocations: 1.768 MB / 1.226 GB, free: 11.86 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.01065/1.004, allocations: 6.18 MB / 1.232 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003161/1.007, allocations: 1.561 MB / 1.233 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/1.008, allocations: 0.5621 MB / 1.234 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001139/1.009, allocations: 0.8867 MB / 1.235 GB, free: 2.055 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001699/1.011, allocations: 0.8011 MB / 1.235 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=126): time 3.426e-06/1.011, allocations: 0 / 1.235 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of matching and sorting (n=126): time 0.005453/1.017, allocations: 1.887 MB / 1.237 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/1.017, allocations: 192.9 kB / 1.237 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/1.018, allocations: 0.9795 MB / 1.238 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001831/1.019, allocations: 57.7 kB / 1.238 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007336/1.019, allocations: 0.6604 MB / 1.239 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004563/1.02, allocations: 417.9 kB / 1.239 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003981/1.02, allocations: 230.8 kB / 1.24 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001792/1.02, allocations: 353.9 kB / 1.24 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009773/1.021, allocations: 446.4 kB / 1.24 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/1.023, allocations: 0.5942 MB / 1.241 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002106/1.025, allocations: 1.042 MB / 1.242 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/1.025, allocations: 0 / 1.242 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003441/1.028, allocations: 1.355 MB / 1.243 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/1.028, allocations: 8 kB / 1.243 GB, free: 8.848 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/1.028, allocations: 0 / 1.243 GB, free: 8.848 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006668/1.029, allocations: 84.94 kB / 1.243 GB, free: 8.762 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/1.03, allocations: 295.6 kB / 1.244 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/1.033, allocations: 1.56 MB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/1.035, allocations: 158.9 kB / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/1.035, allocations: 51.97 kB / 1.245 GB, free: 6.57 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.0009864/1.036, allocations: 383.3 kB / 1.246 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003792/1.036, allocations: 138.3 kB / 1.246 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00386/1.04, allocations: 1.61 MB / 1.248 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/1.04, allocations: 16 kB / 1.248 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/1.04, allocations: 0 / 1.248 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/1.04, allocations: 11.91 kB / 1.248 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00631/1.046, allocations: 3.161 MB / 1.251 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/1.046, allocations: 4 kB / 1.251 GB, free: 1.172 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/1.048, allocations: 271.6 kB / 1.251 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000583/1.048, allocations: 84.77 kB / 1.251 GB, free: 0.8203 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-05/1.048, allocations: 35.97 kB / 1.251 GB, free: 0.7852 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6595/1.708, allocations: 1.555 MB / 1.253 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.708, allocations: 6.562 kB / 1.253 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005571/1.714, allocations: 2.176 MB / 1.255 GB, free: 230.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/1.715, allocations: 396.7 kB / 1.255 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/1.715, allocations: 26.8 kB / 1.255 GB, free: 230.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/1.716, allocations: 121 kB / 1.255 GB, free: 230.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/1.716, allocations: 94.17 kB / 1.255 GB, free: 230.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001622/1.717, allocations: 65.55 kB / 1.255 GB, free: 230.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001256/1.718, allocations: 0.6832 MB / 1.256 GB, free: 229.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.21e-07/1.718, allocations: 0.75 kB / 1.256 GB, free: 229.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001742/1.72, allocations: 0.5546 MB / 1.257 GB, free: 229.8 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.002391/1.722, allocations: 0.7051 MB / 1.257 GB, free: 229.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003323/1.725, allocations: 1.273 MB / 1.258 GB, free: 229.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/1.725, allocations: 1.844 kB / 1.258 GB, free: 229.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0017/1.727, allocations: 0.7609 MB / 1.259 GB, free: 228.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/1.73, allocations: 0.5445 MB / 1.26 GB, free: 228.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006355/1.737, allocations: 3.581 MB / 1.263 GB, free: 226.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/1.738, allocations: 1.311 MB / 1.265 GB, free: 225.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002208/1.74, allocations: 439.1 kB / 1.265 GB, free: 225.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004808/1.741, allocations: 150.6 kB / 1.265 GB, free: 225.8 MB / 0.9981 GB Notification: Performance of SimCode: time 9.02e-07/1.741, allocations: 0 / 1.265 GB, free: 225.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.04514/1.786, allocations: 25.82 MB / 1.29 GB, free: 212.7 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=400 -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