Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.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.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dyn.Q_flow|dyn.medium.T|ste.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.435/2.435, allocations: 390.3 MB / 402.8 MB, free: 6.656 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.001541/0.001541, allocations: 180.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 221.3 MB / 0.7915 GB, free: 5.453 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.0009424/0.0009423, allocations: 99.89 kB / 0.9317 GB, free: 5.766 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.894e-05/2.901e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3091, allocations: 143 MB / 1.219 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.163/1.472, allocations: 401.9 MB / 1.611 GB, free: 336 kB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/1.472, allocations: 84.17 kB / 1.611 GB, free: 292 kB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 1.251/2.724, allocations: 259.3 MB / 1.865 GB, free: 273.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.903e-06/2.724, allocations: 3.938 kB / 1.865 GB, free: 273.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.168e-05/2.724, allocations: 19.83 kB / 1.865 GB, free: 273.9 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001975/2.726, allocations: 0.914 MB / 1.865 GB, free: 273 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/2.726, allocations: 16.03 kB / 1.866 GB, free: 272.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009219/2.727, allocations: 179 kB / 1.866 GB, free: 272.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02494/2.752, allocations: 12.03 MB / 1.877 GB, free: 260.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003691/2.752, allocations: 96.72 kB / 1.878 GB, free: 260.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/2.752, allocations: 47.89 kB / 1.878 GB, free: 260.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008829/2.753, allocations: 454.3 kB / 1.878 GB, free: 260.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/2.753, allocations: 7.938 kB / 1.878 GB, free: 260.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.092e-05/2.753, allocations: 19.95 kB / 1.878 GB, free: 260.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.021e-05/2.753, allocations: 16.77 kB / 1.878 GB, free: 260.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005331/2.754, allocations: 318.9 kB / 1.878 GB, free: 259.9 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003359/2.757, allocations: 2.259 MB / 1.881 GB, free: 257.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004813/2.758, allocations: 271.1 kB / 1.881 GB, free: 257.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002346/2.758, allocations: 185 kB / 1.881 GB, free: 257 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002504/2.758, allocations: 336.6 kB / 1.881 GB, free: 256.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/2.759, allocations: 271.6 kB / 1.882 GB, free: 256.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.876e-06/2.759, allocations: 0 / 1.882 GB, free: 256.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.0009209/2.76, allocations: 498.3 kB / 1.882 GB, free: 255.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/2.76, allocations: 85.11 kB / 1.882 GB, free: 255.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004937/2.76, allocations: 424.8 kB / 1.883 GB, free: 255.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/2.76, allocations: 33.7 kB / 1.883 GB, free: 255.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/2.76, allocations: 288.4 kB / 1.883 GB, free: 254.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.521e-05/2.761, allocations: 102.2 kB / 1.883 GB, free: 254.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.193e-05/2.761, allocations: 12 kB / 1.883 GB, free: 254.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.495e-05/2.761, allocations: 362.7 kB / 1.883 GB, free: 254.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/2.761, allocations: 133.2 kB / 1.883 GB, free: 254.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/2.761, allocations: 227 kB / 1.884 GB, free: 254.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/2.761, allocations: 177.9 kB / 1.884 GB, free: 253.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/2.761, allocations: 4 kB / 1.884 GB, free: 253.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000741/2.762, allocations: 0.5148 MB / 1.884 GB, free: 253.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001416/2.762, allocations: 0.653 MB / 1.885 GB, free: 252.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/2.762, allocations: 0 / 1.885 GB, free: 252.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001978/2.762, allocations: 52.81 kB / 1.885 GB, free: 252.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003524/2.763, allocations: 87.89 kB / 1.885 GB, free: 252.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003422/2.763, allocations: 0.5914 MB / 1.886 GB, free: 251.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/2.764, allocations: 75.77 kB / 1.886 GB, free: 251.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-05/2.764, allocations: 27.98 kB / 1.886 GB, free: 251.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/2.764, allocations: 5.875 kB / 1.886 GB, free: 251.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007634/2.765, allocations: 486.1 kB / 1.886 GB, free: 251.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/2.765, allocations: 0 / 1.886 GB, free: 251.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001434/2.765, allocations: 52.95 kB / 1.886 GB, free: 251.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/2.765, allocations: 91.88 kB / 1.886 GB, free: 251.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/2.766, allocations: 1.619 MB / 1.888 GB, free: 249.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005793/2.767, allocations: 87.72 kB / 1.888 GB, free: 249.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/2.767, allocations: 27.92 kB / 1.888 GB, free: 249.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001623/2.767, allocations: 154.6 kB / 1.888 GB, free: 249.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.647e-05/2.767, allocations: 55.34 kB / 1.888 GB, free: 249.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009113/2.768, allocations: 0.5754 MB / 1.889 GB, free: 248.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/2.768, allocations: 4 kB / 1.889 GB, free: 248.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/2.768, allocations: 0 / 1.889 GB, free: 248.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000693/2.769, allocations: 0.7286 MB / 1.89 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/2.771, allocations: 1.232 MB / 1.891 GB, free: 246.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/2.771, allocations: 0 / 1.891 GB, free: 246.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003279/2.771, allocations: 72.05 kB / 1.891 GB, free: 246.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/2.771, allocations: 48.81 kB / 1.891 GB, free: 246.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/2.771, allocations: 8 kB / 1.891 GB, free: 246.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002547/2.771, allocations: 0.5795 MB / 1.891 GB, free: 245.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/2.771, allocations: 4.062 kB / 1.891 GB, free: 245.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/2.772, allocations: 0.8835 MB / 1.892 GB, free: 244.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002858/2.773, allocations: 184.3 kB / 1.892 GB, free: 244.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.892e-05/2.773, allocations: 11.95 kB / 1.892 GB, free: 244.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005591/2.773, allocations: 67.91 kB / 1.893 GB, free: 244.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/2.773, allocations: 31.94 kB / 1.893 GB, free: 244.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/2.773, allocations: 23.98 kB / 1.893 GB, free: 244.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.000348/2.774, allocations: 341.5 kB / 1.893 GB, free: 244 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.81e-07/2.774, allocations: 0 / 1.893 GB, free: 244 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001347/2.775, allocations: 375.5 kB / 1.893 GB, free: 243.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009822/2.776, allocations: 420.6 kB / 1.894 GB, free: 243.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001299/2.777, allocations: 0.852 MB / 1.895 GB, free: 242.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/2.777, allocations: 0 / 1.895 GB, free: 242.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003313/2.778, allocations: 276.1 kB / 1.895 GB, free: 242.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/2.779, allocations: 234.7 kB / 1.895 GB, free: 241.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/2.781, allocations: 0.7798 MB / 1.896 GB, free: 241.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/2.781, allocations: 0.8911 MB / 1.897 GB, free: 240.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0006964/2.782, allocations: 156.3 kB / 1.897 GB, free: 240 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.831e-05/2.782, allocations: 43.42 kB / 1.897 GB, free: 239.9 MB / 1.151 GB Notification: Performance of SimCode: time 4.61e-07/2.782, allocations: 0 / 1.897 GB, free: 239.9 MB / 1.151 GB Notification: Performance of Templates: time 0.02045/2.802, allocations: 13.3 MB / 1.91 GB, free: 226.8 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_ConservationEquation.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches