Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|modWatRev.conEqn.sta_a.T|modWatRev.conEqn.sta_b.T|modWatNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_b.T|modAirNoRev.conEqn.sta_b.T|modAirRev.conEqn.sta_a.X.1.|modAirRev.conEqn.sta_b.X.1.|modAirNoRev.conEqn.sta_b.X.1.|QSen_flow.y|mWat_flow.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.001358/0.001359, allocations: 177.3 kB / 15.95 MB, free: 208 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.403/1.403, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.451/2.451, allocations: 390.3 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003684, allocations: 15.94 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7042/0.7045, allocations: 142.3 MB / 0.9535 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.213/0.9176, allocations: 162 MB / 1.112 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01126/0.9289, allocations: 6.292 MB / 1.118 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.9308, allocations: 31.75 kB / 1.118 GB, free: 7.422 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002476/0.9333, allocations: 0.6649 MB / 1.119 GB, free: 6.754 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.006118/0.9394, allocations: 1.671 MB / 1.12 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004479/0.9439, allocations: 1.548 MB / 1.122 GB, free: 3.566 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005139/0.9491, allocations: 1.703 MB / 1.123 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001692/0.9508, allocations: 0.7131 MB / 1.124 GB, free: 1.133 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002386/0.9532, allocations: 0.915 MB / 1.125 GB, free: 220 kB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009503/0.9541, allocations: 0.5251 MB / 1.125 GB, free: 15.68 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.9543, allocations: 40 kB / 1.125 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003417/0.9577, allocations: 1.17 MB / 1.127 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0003625/0.9581, allocations: 287 kB / 1.127 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0003879/0.9585, allocations: 245.1 kB / 1.127 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002259/0.9607, allocations: 1.539 MB / 1.129 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.9607, allocations: 0 / 1.129 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.064e-06/0.9607, allocations: 0 / 1.129 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.678e-05/0.9608, allocations: 0 / 1.129 GB, free: 12.41 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003318/0.9641, allocations: 1.391 MB / 1.13 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.9641, allocations: 8.031 kB / 1.13 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/0.967, allocations: 0.6035 MB / 1.131 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001888/0.9689, allocations: 0.9096 MB / 1.131 GB, free: 9.391 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001185/0.9701, allocations: 321 kB / 1.132 GB, free: 9.078 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.9703, allocations: 71.98 kB / 1.132 GB, free: 9.008 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002553/0.9728, allocations: 1.14 MB / 1.133 GB, free: 7.836 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.9729, allocations: 3.938 kB / 1.133 GB, free: 7.832 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.314e-05/0.973, allocations: 31.95 kB / 1.133 GB, free: 7.801 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.389e-05/0.973, allocations: 29.31 kB / 1.133 GB, free: 7.773 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003467/0.9765, allocations: 1.246 MB / 1.134 GB, free: 6.527 MB / 0.8887 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.00699/0.9835, allocations: 3.268 MB / 1.137 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.9852, allocations: 0.6958 MB / 1.138 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005621/0.9858, allocations: 0.6731 MB / 1.139 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.9868, allocations: 0.5182 MB / 1.139 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=57): time 2.365e-06/0.9868, allocations: 0 / 1.139 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of matching and sorting (n=57): time 0.00304/0.9899, allocations: 1.324 MB / 1.141 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.525e-05/0.99, allocations: 144.8 kB / 1.141 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/0.9921, allocations: 1.223 MB / 1.142 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.9922, allocations: 37.7 kB / 1.142 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003886/0.9926, allocations: 441.4 kB / 1.142 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.9928, allocations: 185.3 kB / 1.143 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.353e-05/0.9928, allocations: 12 kB / 1.143 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.993, allocations: 337.9 kB / 1.143 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.9943, allocations: 484.9 kB / 1.143 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.9958, allocations: 0.6328 MB / 1.144 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.9971, allocations: 0.5346 MB / 1.144 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.9971, allocations: 4 kB / 1.144 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003251/1, allocations: 1.283 MB / 1.146 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/1, allocations: 33.7 kB / 1.146 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/1, allocations: 4 kB / 1.146 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/1.001, allocations: 8 kB / 1.146 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009636/1.001, allocations: 216 kB / 1.146 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/1.002, allocations: 8 kB / 1.146 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/1.003, allocations: 302.8 kB / 1.146 GB, free: 9.773 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-05/1.003, allocations: 39.97 kB / 1.146 GB, free: 9.734 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.0006286/1.004, allocations: 331.2 kB / 1.147 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/1.004, allocations: 118.6 kB / 1.147 GB, free: 9.277 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/1.006, allocations: 1.008 MB / 1.148 GB, free: 8.258 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/1.006, allocations: 8 kB / 1.148 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/1.006, allocations: 4 kB / 1.148 GB, free: 8.246 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/1.006, allocations: 3.984 kB / 1.148 GB, free: 8.242 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00487/1.011, allocations: 3.189 MB / 1.151 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/1.011, allocations: 8 kB / 1.151 GB, free: 4.891 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005812/1.012, allocations: 124.1 kB / 1.151 GB, free: 4.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.561e-05/1.012, allocations: 12 kB / 1.151 GB, free: 4.758 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.091e-05/1.012, allocations: 19.98 kB / 1.151 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.631e-05/1.012, allocations: 19.89 kB / 1.151 GB, free: 4.719 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/1.012, allocations: 8 kB / 1.151 GB, free: 4.711 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/1.014, allocations: 1.746 MB / 1.153 GB, free: 2.695 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006719/1.015, allocations: 331.4 kB / 1.153 GB, free: 2.352 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/1.015, allocations: 27.98 kB / 1.153 GB, free: 2.324 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/1.016, allocations: 127.9 kB / 1.153 GB, free: 2.199 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/1.016, allocations: 59.78 kB / 1.153 GB, free: 2.141 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-05/1.017, allocations: 35.97 kB / 1.153 GB, free: 2.105 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001739/1.018, allocations: 0.8911 MB / 1.154 GB, free: 1.207 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.41e-07/1.018, allocations: 4 kB / 1.154 GB, free: 1.203 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001161/1.019, allocations: 295.8 kB / 1.154 GB, free: 0.9141 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.0007571/1.02, allocations: 368.7 kB / 1.155 GB, free: 0.5586 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002587/1.023, allocations: 1.049 MB / 1.156 GB, free: 15.49 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.023, allocations: 4 kB / 1.156 GB, free: 15.49 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0009671/1.024, allocations: 0.5141 MB / 1.156 GB, free: 14.96 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/1.026, allocations: 0.5299 MB / 1.157 GB, free: 14.45 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004387/1.031, allocations: 2.279 MB / 1.159 GB, free: 12.04 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008873/1.032, allocations: 1.089 MB / 1.16 GB, free: 10.92 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001401/1.033, allocations: 281.7 kB / 1.16 GB, free: 10.64 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003303/1.033, allocations: 79.41 kB / 1.16 GB, free: 10.57 MB / 0.92 GB Notification: Performance of SimCode: time 1.723e-06/1.034, allocations: 0 / 1.16 GB, free: 10.57 MB / 0.92 GB Notification: Performance of Templates: time 0.03767/1.071, allocations: 20.86 MB / 1.181 GB, free: 5.957 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches