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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.005177/0.005177, allocations: 102 kB / 15.73 MB, free: 6.051 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.00113/0.00113, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.207/2.207, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 67.91 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8547/0.8559, allocations: 140.4 MB / 1.088 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.Outside_Cp): time 0.2151/1.071, allocations: 175.2 MB / 1.259 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0205/1.092, allocations: 15.55 MB / 1.274 GB, free: 14.9 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002347/1.094, allocations: 35.81 kB / 1.274 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002325/1.096, allocations: 0.5741 MB / 1.275 GB, free: 14.29 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.005407/1.102, allocations: 1.495 MB / 1.276 GB, free: 12.79 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004946/1.107, allocations: 1.662 MB / 1.278 GB, free: 11.13 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004026/1.111, allocations: 2.755 MB / 1.281 GB, free: 8.371 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003247/1.114, allocations: 1.898 MB / 1.282 GB, free: 6.41 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003815/1.118, allocations: 1.349 MB / 1.284 GB, free: 5.094 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/1.12, allocations: 1.033 MB / 1.285 GB, free: 4.059 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0006174/1.12, allocations: 200 kB / 1.285 GB, free: 3.863 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/1.124, allocations: 1.33 MB / 1.286 GB, free: 2.531 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0008079/1.124, allocations: 0.5685 MB / 1.287 GB, free: 1.961 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001648/1.126, allocations: 0.995 MB / 1.288 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.003886/1.13, allocations: 2.96 MB / 1.291 GB, free: 13.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/1.13, allocations: 0 / 1.291 GB, free: 13.99 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.763e-06/1.13, allocations: 4 kB / 1.291 GB, free: 13.99 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.387e-05/1.13, allocations: 0 / 1.291 GB, free: 13.99 MB / 1.029 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.003986/1.134, allocations: 2.275 MB / 1.293 GB, free: 11.65 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/1.134, allocations: 8.031 kB / 1.293 GB, free: 11.64 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002896/1.137, allocations: 473 kB / 1.293 GB, free: 11.18 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001695/1.139, allocations: 1.144 MB / 1.294 GB, free: 9.988 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-05/1.139, allocations: 123.2 kB / 1.295 GB, free: 9.867 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/1.139, allocations: 152 kB / 1.295 GB, free: 9.719 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/1.142, allocations: 1.788 MB / 1.296 GB, free: 7.852 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/1.142, allocations: 3.938 kB / 1.296 GB, free: 7.848 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/1.142, allocations: 71.94 kB / 1.297 GB, free: 7.777 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.077e-05/1.142, allocations: 48 kB / 1.297 GB, free: 7.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002901/1.145, allocations: 1.764 MB / 1.298 GB, free: 5.961 MB / 1.029 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.007646/1.153, allocations: 5.824 MB / 1.304 GB, free: 15.84 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002639/1.155, allocations: 1.567 MB / 1.305 GB, free: 14.21 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009867/1.156, allocations: 0.5668 MB / 1.306 GB, free: 13.64 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009096/1.157, allocations: 0.8866 MB / 1.307 GB, free: 12.57 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001363/1.159, allocations: 0.7934 MB / 1.308 GB, free: 11.76 MB / 1.045 GB Notification: Performance of pre-optimization done (n=126): time 3.066e-06/1.159, allocations: 0 / 1.308 GB, free: 11.76 MB / 1.045 GB Notification: Performance of matching and sorting (n=126): time 0.004713/1.163, allocations: 1.894 MB / 1.31 GB, free: 9.84 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/1.163, allocations: 192.9 kB / 1.31 GB, free: 9.609 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/1.165, allocations: 0.9795 MB / 1.311 GB, free: 8.613 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001135/1.165, allocations: 53.7 kB / 1.311 GB, free: 8.555 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005084/1.165, allocations: 0.6604 MB / 1.311 GB, free: 7.883 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003205/1.166, allocations: 421.9 kB / 1.312 GB, free: 7.465 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003453/1.166, allocations: 234.8 kB / 1.312 GB, free: 7.23 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001264/1.166, allocations: 349.9 kB / 1.312 GB, free: 6.883 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008866/1.167, allocations: 450.4 kB / 1.313 GB, free: 6.441 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/1.168, allocations: 0.598 MB / 1.313 GB, free: 5.809 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001936/1.17, allocations: 1.038 MB / 1.314 GB, free: 4.75 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/1.17, allocations: 0 / 1.314 GB, free: 4.75 MB / 1.045 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002938/1.173, allocations: 1.351 MB / 1.316 GB, free: 3.387 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/1.173, allocations: 7.984 kB / 1.316 GB, free: 3.379 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/1.173, allocations: 4 kB / 1.316 GB, free: 3.375 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005999/1.174, allocations: 84.94 kB / 1.316 GB, free: 3.289 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/1.175, allocations: 291.6 kB / 1.316 GB, free: 3.004 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/1.177, allocations: 1.646 MB / 1.318 GB, free: 1.211 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/1.178, allocations: 147 kB / 1.318 GB, free: 1.066 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.51e-05/1.178, allocations: 47.97 kB / 1.318 GB, free: 1.02 MB / 1.045 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.0007084/1.179, allocations: 387.1 kB / 1.318 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002633/1.179, allocations: 142.3 kB / 1.318 GB, free: 500 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003383/1.183, allocations: 1.594 MB / 1.32 GB, free: 14.88 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.183, allocations: 20 kB / 1.32 GB, free: 14.86 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/1.183, allocations: 3.938 kB / 1.32 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/1.183, allocations: 7.969 kB / 1.32 GB, free: 14.84 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005074/1.188, allocations: 3.155 MB / 1.323 GB, free: 11.62 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/1.188, allocations: 0 / 1.323 GB, free: 11.62 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/1.189, allocations: 275.6 kB / 1.323 GB, free: 11.36 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004294/1.19, allocations: 80.78 kB / 1.323 GB, free: 11.27 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.397e-05/1.19, allocations: 31.97 kB / 1.323 GB, free: 11.24 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00182/1.191, allocations: 1.666 MB / 1.325 GB, free: 9.434 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.191, allocations: 3.938 kB / 1.325 GB, free: 9.43 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004092/1.196, allocations: 2.174 MB / 1.327 GB, free: 7.234 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007142/1.196, allocations: 398.9 kB / 1.328 GB, free: 6.824 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/1.196, allocations: 31.92 kB / 1.328 GB, free: 6.793 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/1.198, allocations: 83.92 kB / 1.328 GB, free: 6.711 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/1.198, allocations: 101.2 kB / 1.328 GB, free: 6.613 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/1.198, allocations: 59.95 kB / 1.328 GB, free: 6.555 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0008931/1.199, allocations: 0.68 MB / 1.328 GB, free: 5.867 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.4e-07/1.199, allocations: 3.938 kB / 1.328 GB, free: 5.863 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001359/1.2, allocations: 0.5414 MB / 1.329 GB, free: 5.32 MB / 1.061 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.001627/1.202, allocations: 0.7209 MB / 1.33 GB, free: 4.781 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002653/1.204, allocations: 1.275 MB / 1.331 GB, free: 3.492 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/1.204, allocations: 4.5 kB / 1.331 GB, free: 3.488 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001348/1.206, allocations: 0.7558 MB / 1.332 GB, free: 2.719 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/1.208, allocations: 0.5555 MB / 1.332 GB, free: 2.188 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005883/1.214, allocations: 2.95 MB / 1.335 GB, free: 15.21 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009544/1.215, allocations: 1.307 MB / 1.336 GB, free: 13.86 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001425/1.216, allocations: 434.8 kB / 1.337 GB, free: 13.43 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004411/1.217, allocations: 163.3 kB / 1.337 GB, free: 13.27 MB / 1.076 GB Notification: Performance of SimCode: time 4.41e-07/1.217, allocations: 0 / 1.337 GB, free: 13.27 MB / 1.076 GB Notification: Performance of Templates: time 0.05864/1.276, allocations: 26.42 MB / 1.363 GB, free: 3.199 MB / 1.092 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