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.000937/0.0009369, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005852/0.005852, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.584/2.584, allocations: 437.8 MB / 0.7121 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003414/0.0003416, allocations: 8 kB / 0.8728 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6917/0.6921, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.1907/0.8828, allocations: 171.5 MB / 1.191 GB, free: 3.664 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02158/0.9045, allocations: 15.48 MB / 1.206 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002341/0.9069, allocations: 27.81 kB / 1.206 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002023/0.9089, allocations: 0.5126 MB / 1.206 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005323/0.9143, allocations: 1.415 MB / 1.208 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.004786/0.9191, allocations: 1.499 MB / 1.209 GB, free: 0.6914 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.005067/0.9241, allocations: 3.335 MB / 1.212 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002913/0.9271, allocations: 1.561 MB / 1.214 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004892/0.932, allocations: 1.098 MB / 1.215 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.9338, allocations: 0.8706 MB / 1.216 GB, free: 9.789 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002488/0.9341, allocations: 52 kB / 1.216 GB, free: 9.738 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002977/0.937, allocations: 1.341 MB / 1.217 GB, free: 8.395 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000437/0.9375, allocations: 398.3 kB / 1.217 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001188/0.9387, allocations: 0.8561 MB / 1.218 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00418/0.9429, allocations: 2.854 MB / 1.221 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.9429, allocations: 0 / 1.221 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.439e-06/0.9429, allocations: 0 / 1.221 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.982e-05/0.943, allocations: 7.938 kB / 1.221 GB, free: 4.266 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.003914/0.9469, allocations: 1.916 MB / 1.223 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.947, allocations: 12.02 kB / 1.223 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003363/0.9503, allocations: 469.2 kB / 1.223 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.9525, allocations: 1.105 MB / 1.225 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.9526, allocations: 123.2 kB / 1.225 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002534/0.9528, allocations: 160 kB / 1.225 GB, free: 396 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003514/0.9564, allocations: 1.788 MB / 1.227 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.765e-05/0.9564, allocations: 4 kB / 1.227 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001697/0.9566, allocations: 68 kB / 1.227 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.419e-05/0.9567, allocations: 47.94 kB / 1.227 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003268/0.96, allocations: 1.776 MB / 1.228 GB, free: 12.62 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.009524/0.9695, allocations: 6.227 MB / 1.234 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002986/0.9725, allocations: 1.559 MB / 1.236 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.9736, allocations: 0.5706 MB / 1.237 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001046/0.9747, allocations: 0.8828 MB / 1.237 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00151/0.9762, allocations: 0.7973 MB / 1.238 GB, free: 1.949 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=126): time 3.667e-06/0.9762, allocations: 3.938 kB / 1.238 GB, free: 1.945 MB / 0.9825 GB Notification: Performance of matching and sorting (n=126): time 0.005399/0.9816, allocations: 1.91 MB / 1.24 GB, free: 4 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.9818, allocations: 196.9 kB / 1.24 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/0.9835, allocations: 0.9795 MB / 1.241 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001995/0.9837, allocations: 49.7 kB / 1.241 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007236/0.9844, allocations: 0.6644 MB / 1.242 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004762/0.9849, allocations: 417.9 kB / 1.242 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.9851, allocations: 97.67 kB / 1.242 GB, free: 13.53 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.9853, allocations: 349.9 kB / 1.243 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009562/0.9862, allocations: 454.4 kB / 1.243 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.9873, allocations: 0.6019 MB / 1.244 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/0.9894, allocations: 1.042 MB / 1.245 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.9895, allocations: 0 / 1.245 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003245/0.9927, allocations: 1.359 MB / 1.246 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.9927, allocations: 4.156 kB / 1.246 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.9928, allocations: 8.078 kB / 1.246 GB, free: 9.648 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006391/0.9934, allocations: 92.7 kB / 1.246 GB, free: 9.555 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.9948, allocations: 287.6 kB / 1.246 GB, free: 9.273 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.9971, allocations: 1.567 MB / 1.248 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.9988, allocations: 172.2 kB / 1.248 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.999, allocations: 55.97 kB / 1.248 GB, free: 7.344 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.0008722/0.9998, allocations: 379.2 kB / 1.249 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002797/1, allocations: 138.4 kB / 1.249 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/1.004, allocations: 1.625 MB / 1.25 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/1.004, allocations: 12 kB / 1.25 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/1.004, allocations: 4 kB / 1.25 GB, free: 5.172 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/1.004, allocations: 3.984 kB / 1.25 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005717/1.01, allocations: 3.169 MB / 1.253 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/1.01, allocations: 0 / 1.253 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/1.011, allocations: 271.7 kB / 1.254 GB, free: 1.672 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005527/1.012, allocations: 92.77 kB / 1.254 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.96e-05/1.012, allocations: 35.97 kB / 1.254 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6212/1.633, allocations: 1.551 MB / 1.255 GB, free: 228.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.633, allocations: 0.5156 kB / 1.255 GB, free: 228.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005289/1.638, allocations: 2.193 MB / 1.257 GB, free: 228.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009238/1.639, allocations: 412.5 kB / 1.258 GB, free: 228 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/1.639, allocations: 27.25 kB / 1.258 GB, free: 227.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/1.641, allocations: 140.8 kB / 1.258 GB, free: 227.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/1.641, allocations: 90.23 kB / 1.258 GB, free: 227.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/1.641, allocations: 64.59 kB / 1.258 GB, free: 227.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001063/1.642, allocations: 0.6886 MB / 1.259 GB, free: 227.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.642, allocations: 0 / 1.259 GB, free: 227.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001707/1.644, allocations: 0.5516 MB / 1.259 GB, free: 227.6 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.001637/1.646, allocations: 0.7074 MB / 1.26 GB, free: 227.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003007/1.649, allocations: 1.292 MB / 1.261 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.649, allocations: 2.438 kB / 1.261 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001584/1.65, allocations: 0.7647 MB / 1.262 GB, free: 226.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00286/1.653, allocations: 0.5329 MB / 1.263 GB, free: 226.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006473/1.66, allocations: 3.66 MB / 1.266 GB, free: 224.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001387/1.661, allocations: 1.306 MB / 1.267 GB, free: 223.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002307/1.663, allocations: 438.9 kB / 1.268 GB, free: 223.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005269/1.664, allocations: 157.9 kB / 1.268 GB, free: 223.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.293e-06/1.664, allocations: 1 kB / 1.268 GB, free: 223.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.04495/1.709, allocations: 25.67 MB / 1.293 GB, free: 211 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