Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.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.Airflow.Multizone.Examples.ZonalFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rooA.T|rooB.T|rooA.Xi.1.|rooB.Xi.1.|zonFlo.port_a1.m_flow|zonFlo.port_a2.m_flow|floExc.port_a1.m_flow|floExc.port_a2.m_flow",fileNamePrefix="Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow") translateModel(Buildings.Airflow.Multizone.Examples.ZonalFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rooA.T|rooB.T|rooA.Xi.1.|rooB.Xi.1.|zonFlo.port_a1.m_flow|zonFlo.port_a2.m_flow|floExc.port_a1.m_flow|floExc.port_a2.m_flow",fileNamePrefix="Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006369/0.006369, allocations: 99.19 kB / 15.73 MB, free: 6.039 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.001513/0.001513, allocations: 187.5 kB / 16.67 MB, free: 5.969 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.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.308/2.308, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 58 kB / 0.9508 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2614, allocations: 140.4 MB / 1.088 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.Examples.ZonalFlow): time 0.7541/1.016, allocations: 204.2 MB / 1.287 GB, free: 3.379 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.008269/1.024, allocations: 6.372 MB / 1.293 GB, free: 3.305 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001208/1.025, allocations: 39.59 kB / 1.294 GB, free: 3.305 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001739/1.027, allocations: 0.7305 MB / 1.294 GB, free: 3.289 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006154/1.033, allocations: 2.668 MB / 1.297 GB, free: 3.18 MB / 1.014 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/Airflow/Multizone/ZonalFlow_ACS.mo:29:3-37:11:writable] Warning: initial() may only be used as a when condition (when initial() or when {..., initial(), ...}), but got condition 'zonFlo.useDefaultProperties and initial()'. Notification: Performance of NFTyping.typeClassSections: time 0.001992/1.035, allocations: 0.7159 MB / 1.298 GB, free: 3.16 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.004235/1.039, allocations: 3.277 MB / 1.301 GB, free: 3.148 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001626/1.041, allocations: 1.137 MB / 1.302 GB, free: 3.043 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002401/1.043, allocations: 1.268 MB / 1.303 GB, free: 3.039 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/1.045, allocations: 1.099 MB / 1.304 GB, free: 3.035 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002131/1.046, allocations: 127.2 kB / 1.304 GB, free: 3.035 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004679/1.05, allocations: 2.353 MB / 1.307 GB, free: 3.016 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0006513/1.051, allocations: 0.5179 MB / 1.307 GB, free: 3.008 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0009939/1.052, allocations: 0.7452 MB / 1.308 GB, free: 2.938 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004275/1.056, allocations: 2.793 MB / 1.311 GB, free: 2.652 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/1.056, allocations: 0.9062 kB / 1.311 GB, free: 2.652 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.453e-06/1.056, allocations: 0 / 1.311 GB, free: 2.652 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.934e-05/1.056, allocations: 0 / 1.311 GB, free: 2.652 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.003961/1.06, allocations: 1.768 MB / 1.312 GB, free: 1.82 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/1.06, allocations: 9.469 kB / 1.312 GB, free: 1.82 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0023/1.063, allocations: 352.6 kB / 1.313 GB, free: 1.758 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/1.064, allocations: 0.8703 MB / 1.313 GB, free: 1.438 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.207e-05/1.064, allocations: 78.94 kB / 1.314 GB, free: 1.43 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/1.064, allocations: 104.6 kB / 1.314 GB, free: 1.426 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/1.066, allocations: 1.194 MB / 1.315 GB, free: 1.344 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/1.066, allocations: 1.219 kB / 1.315 GB, free: 1.344 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/1.066, allocations: 44.66 kB / 1.315 GB, free: 1.344 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.155e-05/1.066, allocations: 59.25 kB / 1.315 GB, free: 1.34 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0018/1.068, allocations: 1.248 MB / 1.316 GB, free: 1.324 MB / 1.014 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.006384/1.075, allocations: 5.104 MB / 1.321 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/1.076, allocations: 1.151 MB / 1.322 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007365/1.077, allocations: 0.5065 MB / 1.323 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.125e-05/1.077, allocations: 16.05 kB / 1.323 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000699/1.078, allocations: 490.7 kB / 1.323 GB, free: 14.36 MB / 1.029 GB Notification: Performance of pre-optimization done (n=76): time 2.795e-06/1.078, allocations: 0 / 1.323 GB, free: 14.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=76): time 0.001859/1.08, allocations: 1.151 MB / 1.324 GB, free: 14.27 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/1.08, allocations: 61.31 kB / 1.324 GB, free: 14.21 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006692/1.08, allocations: 0.569 MB / 1.325 GB, free: 14.08 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.416e-05/1.08, allocations: 46.61 kB / 1.325 GB, free: 14.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002957/1.081, allocations: 466.5 kB / 1.325 GB, free: 13.82 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002336/1.081, allocations: 270.2 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/1.081, allocations: 131.8 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001705/1.081, allocations: 387.3 kB / 1.326 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/1.082, allocations: 332.8 kB / 1.327 GB, free: 13.3 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005465/1.082, allocations: 452.9 kB / 1.327 GB, free: 13.2 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/1.083, allocations: 0.8215 MB / 1.328 GB, free: 13.09 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/1.084, allocations: 0 / 1.328 GB, free: 13.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001232/1.085, allocations: 0.9325 MB / 1.329 GB, free: 13.01 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/1.085, allocations: 6.031 kB / 1.329 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/1.085, allocations: 3.469 kB / 1.329 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/1.085, allocations: 11.66 kB / 1.329 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000646/1.085, allocations: 158.2 kB / 1.329 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/1.085, allocations: 7.312 kB / 1.329 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008278/1.086, allocations: 60.53 kB / 1.329 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.736e-05/1.086, allocations: 28.94 kB / 1.329 GB, free: 12.97 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005025/1.087, allocations: 329.8 kB / 1.329 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/1.087, allocations: 85.38 kB / 1.329 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/1.087, allocations: 108.7 kB / 1.329 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/1.087, allocations: 6.125 kB / 1.329 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/1.087, allocations: 0 / 1.329 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001111/1.088, allocations: 1.091 MB / 1.331 GB, free: 12.34 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 postOpt removeSimpleEquations (simulation): time 0.002955/1.091, allocations: 2.308 MB / 1.333 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/1.091, allocations: 0.9688 kB / 1.333 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008122/1.092, allocations: 177.9 kB / 1.333 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/1.092, allocations: 7.344 kB / 1.333 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/1.092, allocations: 18.59 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/1.092, allocations: 8.578 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/1.092, allocations: 2.719 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/1.094, allocations: 1.346 MB / 1.334 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004796/1.095, allocations: 263 kB / 1.335 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/1.095, allocations: 13.88 kB / 1.335 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/1.095, allocations: 29.47 kB / 1.335 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.593e-05/1.095, allocations: 44.95 kB / 1.335 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/1.095, allocations: 28.72 kB / 1.335 GB, free: 10.86 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004343/1.096, allocations: 410.2 kB / 1.335 GB, free: 10.68 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.4e-07/1.096, allocations: 0.7812 kB / 1.335 GB, free: 10.68 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0009021/1.097, allocations: 370.7 kB / 1.335 GB, free: 10.6 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (rooA.dynBal.medium.Xi[1],rooA.dynBal.U,rooA.dynBal.m,rooB.dynBal.medium.Xi[1],rooB.dynBal.U,rooB.dynBal.m) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002494/1.097, allocations: 177 kB / 1.336 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001077/1.098, allocations: 0.8017 MB / 1.336 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/1.098, allocations: 2.812 kB / 1.336 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004894/1.099, allocations: 428.8 kB / 1.337 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/1.101, allocations: 0.5855 MB / 1.337 GB, free: 9.941 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002977/1.104, allocations: 2.181 MB / 1.339 GB, free: 8.793 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006467/1.105, allocations: 1.136 MB / 1.341 GB, free: 8.035 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0008407/1.106, allocations: 276.4 kB / 1.341 GB, free: 7.977 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/1.106, allocations: 78.22 kB / 1.341 GB, free: 7.965 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/1.106, allocations: 0 / 1.341 GB, free: 7.965 MB / 1.029 GB Notification: Performance of Templates: time 0.02897/1.135, allocations: 19.52 MB / 1.36 GB, free: 2.352 MB / 1.029 GB make -j1 -f Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.makefile (rm -f Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.pipe ; mkfifo Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.pipe >> ../files/Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.sim & ./Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Airflow_Multizone_Examples_ZonalFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Airflow.Multizone.Examples.ZonalFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches