Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.563/2.563, allocations: 393.5 MB / 408.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 182.3 kB / 0.4902 GB, free: 2.254 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.711/1.711, allocations: 223.1 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 96.31 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005336/0.0005337, allocations: 7.531 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4326, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.777/6.21, allocations: 2.156 GB / 3.385 GB, free: 296.2 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/6.21, allocations: 88.66 kB / 3.385 GB, free: 296.1 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 2.1/8.31, allocations: 0.6592 GB / 4.044 GB, free: 73.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.894e-06/8.31, allocations: 4 kB / 4.044 GB, free: 73.19 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001908/8.31, allocations: 31.98 kB / 4.044 GB, free: 73.16 MB / 1.167 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.008571/8.319, allocations: 1.641 MB / 4.046 GB, free: 71.46 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/8.319, allocations: 8.031 kB / 4.046 GB, free: 71.45 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005101/8.324, allocations: 0.5332 MB / 4.046 GB, free: 70.91 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04326/8.367, allocations: 13.23 MB / 4.059 GB, free: 57.51 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001218/8.368, allocations: 317.2 kB / 4.06 GB, free: 57.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004668/8.369, allocations: 68 kB / 4.06 GB, free: 57.13 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003106/8.372, allocations: 1.171 MB / 4.061 GB, free: 55.93 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/8.372, allocations: 3.938 kB / 4.061 GB, free: 55.92 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001666/8.372, allocations: 28 kB / 4.061 GB, free: 55.89 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-05/8.372, allocations: 37.28 kB / 4.061 GB, free: 55.86 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003163/8.376, allocations: 1.164 MB / 4.062 GB, free: 54.69 MB / 1.167 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.007281/8.383, allocations: 3.315 MB / 4.065 GB, free: 51.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/8.384, allocations: 0.6958 MB / 4.066 GB, free: 50.6 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007737/8.385, allocations: 1.033 MB / 4.067 GB, free: 49.34 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000943/8.386, allocations: 0.5416 MB / 4.067 GB, free: 48.77 MB / 1.167 GB Notification: Performance of pre-optimization done (n=57): time 3.236e-06/8.386, allocations: 0 / 4.067 GB, free: 48.77 MB / 1.167 GB Notification: Performance of matching and sorting (n=57): time 0.003052/8.389, allocations: 1.36 MB / 4.069 GB, free: 47.38 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/8.389, allocations: 140.9 kB / 4.069 GB, free: 47.21 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/8.391, allocations: 1.085 MB / 4.07 GB, free: 46.12 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001296/8.391, allocations: 37.7 kB / 4.07 GB, free: 46.07 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003234/8.392, allocations: 457.8 kB / 4.07 GB, free: 45.62 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/8.392, allocations: 185.3 kB / 4.071 GB, free: 45.44 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/8.392, allocations: 12 kB / 4.071 GB, free: 45.43 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.524e-05/8.392, allocations: 326 kB / 4.071 GB, free: 45.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/8.393, allocations: 0.4969 MB / 4.071 GB, free: 44.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/8.394, allocations: 0.6952 MB / 4.072 GB, free: 43.84 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/8.396, allocations: 0.5529 MB / 4.073 GB, free: 43.28 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/8.396, allocations: 4 kB / 4.073 GB, free: 43.27 MB / 1.167 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002948/8.398, allocations: 1.336 MB / 4.074 GB, free: 41.93 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/8.399, allocations: 46.72 kB / 4.074 GB, free: 41.88 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/8.399, allocations: 4 kB / 4.074 GB, free: 41.87 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/8.399, allocations: 4 kB / 4.074 GB, free: 41.87 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009491/8.4, allocations: 215.9 kB / 4.074 GB, free: 41.66 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/8.4, allocations: 8 kB / 4.074 GB, free: 41.65 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/8.401, allocations: 314.8 kB / 4.074 GB, free: 41.34 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/8.401, allocations: 47.97 kB / 4.075 GB, free: 41.29 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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.0005313/8.402, allocations: 319.5 kB / 4.075 GB, free: 40.96 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/8.402, allocations: 118.6 kB / 4.075 GB, free: 40.85 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001879/8.404, allocations: 1.064 MB / 4.076 GB, free: 39.77 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/8.404, allocations: 4 kB / 4.076 GB, free: 39.77 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/8.404, allocations: 4 kB / 4.076 GB, free: 39.76 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/8.404, allocations: 3.984 kB / 4.076 GB, free: 39.76 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004314/8.408, allocations: 3.252 MB / 4.079 GB, free: 36.35 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/8.408, allocations: 8.516 kB / 4.079 GB, free: 36.34 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006707/8.409, allocations: 136 kB / 4.079 GB, free: 36.21 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/8.409, allocations: 8 kB / 4.079 GB, free: 36.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.377e-05/8.409, allocations: 27.98 kB / 4.079 GB, free: 36.18 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.379e-05/8.409, allocations: 15.94 kB / 4.079 GB, free: 36.16 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/8.409, allocations: 8 kB / 4.079 GB, free: 36.15 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/8.411, allocations: 1.798 MB / 4.081 GB, free: 34.08 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005586/8.412, allocations: 351.2 kB / 4.081 GB, free: 33.72 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/8.412, allocations: 27.98 kB / 4.081 GB, free: 33.69 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/8.413, allocations: 127.8 kB / 4.082 GB, free: 33.57 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.709e-05/8.413, allocations: 63.72 kB / 4.082 GB, free: 33.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.458e-05/8.413, allocations: 47.97 kB / 4.082 GB, free: 33.46 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001334/8.415, allocations: 0.8755 MB / 4.083 GB, free: 32.57 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/8.415, allocations: 0 / 4.083 GB, free: 32.57 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001634/8.416, allocations: 431.8 kB / 4.083 GB, free: 32.15 MB / 1.167 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.002294/8.419, allocations: 1.589 MB / 4.085 GB, free: 30.49 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00224/8.421, allocations: 1.076 MB / 4.086 GB, free: 29.4 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/8.421, allocations: 448 / 4.086 GB, free: 29.4 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0007773/8.422, allocations: 0.5344 MB / 4.086 GB, free: 28.86 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/8.424, allocations: 0.526 MB / 4.087 GB, free: 28.32 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/8.427, allocations: 2.26 MB / 4.089 GB, free: 25.94 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/8.428, allocations: 1.093 MB / 4.09 GB, free: 24.82 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001138/8.429, allocations: 284 kB / 4.09 GB, free: 24.54 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/8.429, allocations: 83.41 kB / 4.09 GB, free: 24.46 MB / 1.167 GB Notification: Performance of SimCode: time 9.22e-07/8.429, allocations: 0 / 4.09 GB, free: 24.46 MB / 1.167 GB Notification: Performance of Templates: time 0.7131/9.142, allocations: 37.09 MB / 4.126 GB, free: 251.8 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches