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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 102.9 kB / 15.06 MB, free: 1.098 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.001414/0.001414, allocations: 173.3 kB / 15.95 MB, free: 212 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.329/1.329, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.569/2.569, allocations: 436.5 MB / 0.7104 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.000343, allocations: 8 kB / 0.8708 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6392/0.6396, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.01747/0.6571, allocations: 17.5 MB / 1.038 GB, free: 15.55 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.006734/0.6638, allocations: 4.649 MB / 1.042 GB, free: 10.89 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006192/0.6645, allocations: 19.88 kB / 1.042 GB, free: 10.87 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.6655, allocations: 302.5 kB / 1.043 GB, free: 10.57 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00205/0.6676, allocations: 0.8102 MB / 1.044 GB, free: 9.758 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002661/0.6703, allocations: 0.9167 MB / 1.044 GB, free: 8.855 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00161/0.6719, allocations: 1.039 MB / 1.045 GB, free: 7.816 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006506/0.6726, allocations: 407.2 kB / 1.046 GB, free: 7.402 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009172/0.6735, allocations: 0.5294 MB / 1.046 GB, free: 6.871 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004305/0.6739, allocations: 334.6 kB / 1.047 GB, free: 6.543 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/0.674, allocations: 20 kB / 1.047 GB, free: 6.523 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.6756, allocations: 0.8346 MB / 1.048 GB, free: 5.688 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.6758, allocations: 111.6 kB / 1.048 GB, free: 5.578 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.676, allocations: 145.3 kB / 1.048 GB, free: 5.43 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.677, allocations: 0.7815 MB / 1.049 GB, free: 4.648 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.6771, allocations: 0 / 1.049 GB, free: 4.648 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6771, allocations: 0 / 1.049 GB, free: 4.648 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.715e-06/0.6771, allocations: 0 / 1.049 GB, free: 4.648 MB / 0.795 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.001533/0.6786, allocations: 0.913 MB / 1.049 GB, free: 3.68 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.6787, allocations: 15.97 kB / 1.049 GB, free: 3.664 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008851/0.6795, allocations: 199 kB / 1.05 GB, free: 3.469 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009016/0.6805, allocations: 0.5025 MB / 1.05 GB, free: 2.926 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003424/0.6808, allocations: 96.94 kB / 1.05 GB, free: 2.828 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.491e-05/0.6809, allocations: 40 kB / 1.05 GB, free: 2.789 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009388/0.6818, allocations: 0.4999 MB / 1.051 GB, free: 2.273 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.6819, allocations: 0 / 1.051 GB, free: 2.273 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.6819, allocations: 19.95 kB / 1.051 GB, free: 2.254 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.6819, allocations: 12 kB / 1.051 GB, free: 2.242 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.683, allocations: 430.6 kB / 1.051 GB, free: 1.82 MB / 0.795 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.003367/0.6863, allocations: 2.309 MB / 1.053 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.6874, allocations: 398.9 kB / 1.054 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002821/0.6877, allocations: 332.7 kB / 1.054 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006319/0.6883, allocations: 323.1 kB / 1.054 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.6883, allocations: 3.938 kB / 1.054 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33): time 0.002259/0.6906, allocations: 0.9604 MB / 1.055 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.6907, allocations: 89.09 kB / 1.055 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005189/0.6912, allocations: 0.4912 MB / 1.056 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.536e-05/0.6913, allocations: 33.7 kB / 1.056 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.6915, allocations: 280.4 kB / 1.056 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.6917, allocations: 106.4 kB / 1.056 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.6917, allocations: 12 kB / 1.056 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.6919, allocations: 366.7 kB / 1.057 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/0.6923, allocations: 175.9 kB / 1.057 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004979/0.6928, allocations: 269.2 kB / 1.057 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004768/0.6933, allocations: 226.2 kB / 1.057 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.6933, allocations: 0 / 1.057 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001431/0.6947, allocations: 0.6326 MB / 1.058 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.000259/0.695, allocations: 0.6414 MB / 1.059 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.695, allocations: 4 kB / 1.059 GB, free: 9.703 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.6954, allocations: 68.75 kB / 1.059 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.6958, allocations: 79.94 kB / 1.059 GB, free: 9.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004933/0.6963, allocations: 0.5991 MB / 1.059 GB, free: 8.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000551/0.6968, allocations: 83.69 kB / 1.059 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.972e-05/0.6969, allocations: 12 kB / 1.059 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.6969, allocations: 7.984 kB / 1.059 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001273/0.6982, allocations: 0.5527 MB / 1.06 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6982, allocations: 3.984 kB / 1.06 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001376/0.6983, allocations: 48.83 kB / 1.06 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003543/0.6987, allocations: 88.03 kB / 1.06 GB, free: 8.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.7001, allocations: 1.638 MB / 1.062 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005139/0.7007, allocations: 87.66 kB / 1.062 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.7007, allocations: 16.19 kB / 1.062 GB, free: 6.242 MB / 0.8106 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 () * Number of clocked 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.0003271/0.701, allocations: 296.8 kB / 1.062 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.944e-05/0.7011, allocations: 55.34 kB / 1.062 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.7026, allocations: 0.6764 MB / 1.063 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.7026, allocations: 4 kB / 1.063 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.7026, allocations: 0 / 1.063 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001323/0.7039, allocations: 0.8138 MB / 1.064 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002322/0.7062, allocations: 1.316 MB / 1.065 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/0.7063, allocations: 4 kB / 1.065 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.7067, allocations: 71.98 kB / 1.065 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000126/0.7068, allocations: 40.83 kB / 1.065 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.7069, allocations: 15.98 kB / 1.065 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004225/0.7073, allocations: 0.5757 MB / 1.066 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.7073, allocations: 4.062 kB / 1.066 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.7093, allocations: 1.039 MB / 1.067 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002451/0.7095, allocations: 184.2 kB / 1.067 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.039e-05/0.7096, allocations: 11.95 kB / 1.067 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005407/0.7102, allocations: 72 kB / 1.067 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.493e-05/0.7102, allocations: 15.97 kB / 1.067 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.536e-05/0.7103, allocations: 27.92 kB / 1.067 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003672/0.7106, allocations: 354.8 kB / 1.067 GB, free: 412 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7107, allocations: 0 / 1.067 GB, free: 412 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001108/0.7118, allocations: 351.4 kB / 1.068 GB, free: 60 kB / 0.8106 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) * Number of clocked states: 0 () * 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.0006325/0.7124, allocations: 310.5 kB / 1.068 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001971/0.7144, allocations: 0.9946 MB / 1.069 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7144, allocations: 0 / 1.069 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006896/0.7151, allocations: 331.4 kB / 1.069 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.7163, allocations: 240.8 kB / 1.069 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.7184, allocations: 1.336 MB / 1.071 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.719, allocations: 0.894 MB / 1.072 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000474/0.7194, allocations: 132.4 kB / 1.072 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.7196, allocations: 55.34 kB / 1.072 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.7196, allocations: 0 / 1.072 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.01748/0.737, allocations: 10.94 MB / 1.082 GB, free: 0.8594 MB / 0.8262 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