Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Orifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ori.V_flow|ori.dp|ori.v",fileNamePrefix="Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice") translateModel(Buildings.Airflow.Multizone.Examples.Orifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ori.V_flow|ori.dp|ori.v",fileNamePrefix="Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 99 kB / 15.05 MB, free: 1.105 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.001537/0.001537, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.316/2.316, allocations: 390.3 MB / 0.6653 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003076/0.0003077, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5868/0.5871, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Airflow.Multizone.Examples.Orifice): time 0.1478/0.7349, allocations: 145.2 MB / 1.095 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003836/0.7388, allocations: 2.314 MB / 1.098 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000522/0.7394, allocations: 15.88 kB / 1.098 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009312/0.7403, allocations: 234.9 kB / 1.098 GB, free: 12 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002327/0.7427, allocations: 0.7829 MB / 1.099 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.7444, allocations: 0.5407 MB / 1.099 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001269/0.7456, allocations: 0.5856 MB / 1.1 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005504/0.7462, allocations: 257.6 kB / 1.1 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00107/0.7473, allocations: 462.6 kB / 1.1 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004323/0.7477, allocations: 207.1 kB / 1.101 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.511e-05/0.7478, allocations: 23.94 kB / 1.101 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001327/0.7491, allocations: 0.4953 MB / 1.101 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.7493, allocations: 119.7 kB / 1.101 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.7495, allocations: 109.5 kB / 1.101 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009102/0.7505, allocations: 0.5106 MB / 1.102 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.7505, allocations: 4 kB / 1.102 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7505, allocations: 3.938 kB / 1.102 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.7505, allocations: 0 / 1.102 GB, free: 7.914 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001157/0.7517, allocations: 0.7219 MB / 1.102 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.7517, allocations: 8.031 kB / 1.102 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.753, allocations: 191.1 kB / 1.103 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005608/0.7536, allocations: 357.7 kB / 1.103 GB, free: 6.562 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.7536, allocations: 28.61 kB / 1.103 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.438e-05/0.7536, allocations: 28 kB / 1.103 GB, free: 6.508 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005865/0.7542, allocations: 377.1 kB / 1.103 GB, free: 6.109 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.7543, allocations: 4 kB / 1.103 GB, free: 6.105 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.7543, allocations: 11.94 kB / 1.103 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.7543, allocations: 12 kB / 1.103 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004986/0.7549, allocations: 270 kB / 1.104 GB, free: 5.82 MB / 0.8575 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.001721/0.7566, allocations: 1.668 MB / 1.105 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/0.757, allocations: 230.3 kB / 1.106 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007589/0.7578, allocations: 0.7078 MB / 1.106 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.7578, allocations: 34.56 kB / 1.106 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.7578, allocations: 3.938 kB / 1.106 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.0008865/0.7587, allocations: 367 kB / 1.107 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.7587, allocations: 59.34 kB / 1.107 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000427/0.7592, allocations: 422 kB / 1.107 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.7592, allocations: 29.7 kB / 1.107 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.7594, allocations: 216.2 kB / 1.107 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.059e-05/0.7594, allocations: 74.91 kB / 1.107 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.7595, allocations: 4 kB / 1.107 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7596, allocations: 358.8 kB / 1.108 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.7598, allocations: 75.95 kB / 1.108 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.76, allocations: 133 kB / 1.108 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.7602, allocations: 101.8 kB / 1.108 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7603, allocations: 4.031 kB / 1.108 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005212/0.7608, allocations: 292.8 kB / 1.108 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.7608, allocations: 7.984 kB / 1.108 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.7608, allocations: 4 kB / 1.108 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.7608, allocations: 0 / 1.108 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.7611, allocations: 52.02 kB / 1.108 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.7611, allocations: 7.922 kB / 1.108 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.7614, allocations: 43.67 kB / 1.108 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.7614, allocations: 12 kB / 1.108 GB, free: 0.5977 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001731/0.7616, allocations: 165.8 kB / 1.109 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.72e-05/0.7617, allocations: 43.47 kB / 1.109 GB, free: 392 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005707/0.7623, allocations: 302.1 kB / 1.109 GB, free: 84 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.7623, allocations: 4 kB / 1.109 GB, free: 80 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.7623, allocations: 4 kB / 1.109 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.7623, allocations: 3.984 kB / 1.109 GB, free: 72 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.7636, allocations: 0.8202 MB / 1.11 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.7636, allocations: 0 / 1.11 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.7639, allocations: 47.92 kB / 1.11 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.7639, allocations: 0 / 1.11 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.7639, allocations: 11.98 kB / 1.11 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.7639, allocations: 8.141 kB / 1.11 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.7639, allocations: 4 kB / 1.11 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.7647, allocations: 0.5856 MB / 1.11 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001767/0.7649, allocations: 140.6 kB / 1.111 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.765, allocations: 8 kB / 1.111 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.7653, allocations: 39.83 kB / 1.111 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.7654, allocations: 11.98 kB / 1.111 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.7654, allocations: 15.98 kB / 1.111 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.00029/0.7657, allocations: 295.1 kB / 1.111 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7657, allocations: 0 / 1.111 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004572/0.7661, allocations: 123.7 kB / 1.111 GB, free: 13.81 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (ori.mExc,den1.d,den2.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000424/0.7666, allocations: 186.9 kB / 1.111 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004874/0.7671, allocations: 216.3 kB / 1.111 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.7671, allocations: 0 / 1.111 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002208/0.7673, allocations: 117.1 kB / 1.111 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.7684, allocations: 219.7 kB / 1.112 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.77, allocations: 1.09 MB / 1.113 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.7704, allocations: 0.8353 MB / 1.114 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003105/0.7707, allocations: 87.34 kB / 1.114 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.313e-05/0.7708, allocations: 31.44 kB / 1.114 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.7708, allocations: 0 / 1.114 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of Templates: time 0.01266/0.7835, allocations: 7.407 MB / 1.121 GB, free: 3.715 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.makefile (rm -f Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; mkfifo Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe ; head -c 1048576 < Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe >> ../files/Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.sim & ./Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Airflow_Multizone_Examples_Orifice.csv","../files/Buildings_9_Buildings.Airflow.Multizone.Examples.Orifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches