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.351/2.351, allocations: 390.5 MB / 398 MB, free: 10.95 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.001338/0.001338, allocations: 180.9 kB / 491.2 MB, free: 1.59 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.716/1.716, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0008847/0.0008848, allocations: 94.55 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.61e-05/2.614e-05, allocations: 8 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3086, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.237/1.546, allocations: 401.2 MB / 1.604 GB, free: 13.29 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/1.546, allocations: 89.27 kB / 1.604 GB, free: 13.24 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.296/2.842, allocations: 257.7 MB / 1.856 GB, free: 348.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.794e-06/2.842, allocations: 0 / 1.856 GB, free: 348.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.112e-05/2.842, allocations: 18.08 kB / 1.856 GB, free: 348.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.002346/2.845, allocations: 0.9191 MB / 1.857 GB, free: 348.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/2.845, allocations: 7.75 kB / 1.857 GB, free: 348.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/2.846, allocations: 185 kB / 1.857 GB, free: 348.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02399/2.87, allocations: 11.98 MB / 1.869 GB, free: 338.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003291/2.87, allocations: 84.72 kB / 1.869 GB, free: 338.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/2.87, allocations: 20 kB / 1.869 GB, free: 338.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005821/2.871, allocations: 297.5 kB / 1.869 GB, free: 337.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006586/2.872, allocations: 408.7 kB / 1.869 GB, free: 337.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/2.872, allocations: 3.906 kB / 1.869 GB, free: 337.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/2.872, allocations: 3.953 kB / 1.869 GB, free: 337.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.631e-05/2.872, allocations: 16.78 kB / 1.869 GB, free: 337.4 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.003028/2.875, allocations: 2.187 MB / 1.872 GB, free: 335.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/2.875, allocations: 262.9 kB / 1.872 GB, free: 334.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/2.875, allocations: 180.9 kB / 1.872 GB, free: 334.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002746/2.876, allocations: 340.4 kB / 1.872 GB, free: 334.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003156/2.876, allocations: 246.7 kB / 1.873 GB, free: 334 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/2.876, allocations: 0 / 1.873 GB, free: 334 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001166/2.877, allocations: 470.2 kB / 1.873 GB, free: 333.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/2.877, allocations: 85.11 kB / 1.873 GB, free: 333.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004231/2.878, allocations: 369.3 kB / 1.873 GB, free: 333 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/2.878, allocations: 25.7 kB / 1.873 GB, free: 333 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/2.878, allocations: 284.2 kB / 1.874 GB, free: 332.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/2.878, allocations: 102.5 kB / 1.874 GB, free: 332.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.085e-05/2.878, allocations: 0 / 1.874 GB, free: 332.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.556e-05/2.878, allocations: 362.8 kB / 1.874 GB, free: 332.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/2.878, allocations: 121.5 kB / 1.874 GB, free: 332.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/2.879, allocations: 219 kB / 1.875 GB, free: 331.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/2.879, allocations: 155.9 kB / 1.875 GB, free: 331.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/2.879, allocations: 0 / 1.875 GB, free: 331.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009731/2.88, allocations: 0.5096 MB / 1.875 GB, free: 331.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001636/2.88, allocations: 0.6426 MB / 1.876 GB, free: 330.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/2.88, allocations: 3.953 kB / 1.876 GB, free: 330.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/2.88, allocations: 48.84 kB / 1.876 GB, free: 330.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/2.881, allocations: 83.88 kB / 1.876 GB, free: 330.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003519/2.881, allocations: 0.5992 MB / 1.877 GB, free: 329.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006144/2.882, allocations: 75.72 kB / 1.877 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.683e-05/2.882, allocations: 19.98 kB / 1.877 GB, free: 329.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/2.882, allocations: 4 kB / 1.877 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000772/2.883, allocations: 436.7 kB / 1.877 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/2.883, allocations: 3.938 kB / 1.877 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001423/2.883, allocations: 44.83 kB / 1.877 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000335/2.883, allocations: 88.03 kB / 1.877 GB, free: 329.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001287/2.884, allocations: 1.567 MB / 1.879 GB, free: 327.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/2.885, allocations: 71.83 kB / 1.879 GB, free: 327.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.878e-05/2.885, allocations: 19.98 kB / 1.879 GB, free: 327.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.0001835/2.885, allocations: 154.3 kB / 1.879 GB, free: 327.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.479e-05/2.885, allocations: 59.33 kB / 1.879 GB, free: 327.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009559/2.886, allocations: 0.5168 MB / 1.879 GB, free: 326.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/2.886, allocations: 8 kB / 1.88 GB, free: 326.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/2.886, allocations: 11.86 kB / 1.88 GB, free: 326.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000746/2.887, allocations: 0.6902 MB / 1.88 GB, free: 325.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/2.889, allocations: 1.12 MB / 1.881 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/2.889, allocations: 4 kB / 1.881 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003277/2.889, allocations: 63.95 kB / 1.881 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.261e-05/2.889, allocations: 40.94 kB / 1.881 GB, free: 324.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/2.889, allocations: 15.92 kB / 1.881 GB, free: 324.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002472/2.889, allocations: 0.5719 MB / 1.882 GB, free: 323.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/2.89, allocations: 7.953 kB / 1.882 GB, free: 323.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/2.891, allocations: 0.8346 MB / 1.883 GB, free: 323 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/2.891, allocations: 180.3 kB / 1.883 GB, free: 322.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.428e-05/2.891, allocations: 7.984 kB / 1.883 GB, free: 322.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/2.892, allocations: 64 kB / 1.883 GB, free: 322.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.352e-05/2.892, allocations: 19.94 kB / 1.883 GB, free: 322.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.666e-05/2.892, allocations: 23.97 kB / 1.883 GB, free: 322.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0002933/2.892, allocations: 290.9 kB / 1.883 GB, free: 322.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/2.892, allocations: 0 / 1.883 GB, free: 322.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001358/2.893, allocations: 373.9 kB / 1.884 GB, free: 322.1 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.0009828/2.894, allocations: 439 kB / 1.884 GB, free: 321.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001151/2.896, allocations: 0.8037 MB / 1.885 GB, free: 320.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/2.896, allocations: 0.75 kB / 1.885 GB, free: 320.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002919/2.896, allocations: 272 kB / 1.885 GB, free: 320.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/2.897, allocations: 213.8 kB / 1.885 GB, free: 320.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/2.899, allocations: 0.7487 MB / 1.886 GB, free: 319.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/2.899, allocations: 0.8947 MB / 1.887 GB, free: 318.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0006713/2.9, allocations: 144.2 kB / 1.887 GB, free: 318.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.297e-05/2.9, allocations: 35.42 kB / 1.887 GB, free: 318.5 MB / 1.151 GB Notification: Performance of SimCode: time 2.214e-06/2.9, allocations: 4 kB / 1.887 GB, free: 318.4 MB / 1.151 GB Notification: Performance of Templates: time 0.01821/2.918, allocations: 11.36 MB / 1.898 GB, free: 307.2 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