Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.dp|res.sta_a.T|res.sta_b.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe") translateModel(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.dp|res.sta_a.T|res.sta_b.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.415/1.415, allocations: 249.3 MB / 261.8 MB, free: 5.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 176.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.2 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009101/0.0009101, allocations: 90.47 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.025e-05, allocations: 7.984 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.169, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.795/4.964, allocations: 2.178 GB / 3.07 GB, free: 192.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/4.965, allocations: 83.95 kB / 3.07 GB, free: 192.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.9903/5.955, allocations: 208.3 MB / 3.273 GB, free: 253.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.382e-06/5.955, allocations: 1.406 kB / 3.273 GB, free: 253.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.546e-05/5.955, allocations: 6.156 kB / 3.273 GB, free: 253.5 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001968/5.957, allocations: 0.5845 MB / 3.274 GB, free: 253.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/5.957, allocations: 12.88 kB / 3.274 GB, free: 253.2 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003952/5.958, allocations: 53.23 kB / 3.274 GB, free: 253.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000525/5.958, allocations: 278.6 kB / 3.274 GB, free: 253 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/5.958, allocations: 17.22 kB / 3.274 GB, free: 253 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/5.958, allocations: 15.94 kB / 3.274 GB, free: 253 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004734/5.959, allocations: 218 kB / 3.274 GB, free: 252.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/5.959, allocations: 0.6094 kB / 3.274 GB, free: 252.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/5.959, allocations: 8.125 kB / 3.274 GB, free: 252.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.333e-05/5.959, allocations: 12.19 kB / 3.274 GB, free: 252.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004065/5.959, allocations: 204.6 kB / 3.274 GB, free: 252.9 MB / 0.8698 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.001525/5.961, allocations: 0.8235 MB / 3.275 GB, free: 252.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/5.961, allocations: 129.8 kB / 3.275 GB, free: 252.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/5.961, allocations: 94.34 kB / 3.276 GB, free: 252.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000272/5.961, allocations: 194.2 kB / 3.276 GB, free: 252.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/5.961, allocations: 32.44 kB / 3.276 GB, free: 252.3 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/5.961, allocations: 1.438 kB / 3.276 GB, free: 252.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.0005538/5.962, allocations: 197.2 kB / 3.276 GB, free: 252.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/5.962, allocations: 52.38 kB / 3.276 GB, free: 252.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/5.962, allocations: 218.8 kB / 3.276 GB, free: 252.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/5.962, allocations: 34.09 kB / 3.276 GB, free: 252 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/5.962, allocations: 140.2 kB / 3.276 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/5.963, allocations: 44.59 kB / 3.276 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.819e-06/5.963, allocations: 3.688 kB / 3.276 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.575e-05/5.963, allocations: 331.7 kB / 3.277 GB, free: 251.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/5.963, allocations: 57.98 kB / 3.277 GB, free: 251.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/5.963, allocations: 101.9 kB / 3.277 GB, free: 251.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/5.963, allocations: 62.03 kB / 3.277 GB, free: 251.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/5.963, allocations: 1.188 kB / 3.277 GB, free: 251.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003359/5.963, allocations: 188.9 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/5.963, allocations: 8.031 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/5.963, allocations: 4.312 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/5.963, allocations: 1.188 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/5.964, allocations: 33.5 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/5.964, allocations: 5.078 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/5.964, allocations: 31.62 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/5.964, allocations: 5.625 kB / 3.277 GB, free: 251.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001097/5.964, allocations: 119.2 kB / 3.277 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/5.964, allocations: 25.42 kB / 3.277 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.24e-05/5.964, allocations: 29.47 kB / 3.277 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/5.964, allocations: 1.219 kB / 3.277 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/5.964, allocations: 1.469 kB / 3.277 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/5.964, allocations: 7.891 kB / 3.277 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/5.965, allocations: 0.6437 MB / 3.278 GB, free: 251 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/5.965, allocations: 5.266 kB / 3.278 GB, free: 251 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/5.966, allocations: 33.67 kB / 3.278 GB, free: 251 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/5.966, allocations: 3.312 kB / 3.278 GB, free: 251 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/5.966, allocations: 17.56 kB / 3.278 GB, free: 251 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/5.966, allocations: 6.25 kB / 3.278 GB, free: 251 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/5.966, allocations: 1.375 kB / 3.278 GB, free: 251 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004095/5.966, allocations: 417.8 kB / 3.278 GB, free: 250.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/5.966, allocations: 117.8 kB / 3.279 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/5.966, allocations: 3.219 kB / 3.279 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/5.966, allocations: 20.92 kB / 3.279 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/5.966, allocations: 9.656 kB / 3.279 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/5.966, allocations: 8.781 kB / 3.279 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.000169/5.967, allocations: 178.8 kB / 3.279 GB, free: 250.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/5.967, allocations: 0 / 3.279 GB, free: 250.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0006989/5.967, allocations: 132 kB / 3.279 GB, free: 250.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.00203/5.969, allocations: 0.8799 MB / 3.28 GB, free: 250.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003352/5.97, allocations: 141.8 kB / 3.28 GB, free: 250.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/5.97, allocations: 0 / 3.28 GB, free: 250.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001526/5.97, allocations: 92.33 kB / 3.28 GB, free: 250.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/5.971, allocations: 120.1 kB / 3.28 GB, free: 250.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006215/5.971, allocations: 307.3 kB / 3.28 GB, free: 250.1 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/5.972, allocations: 0.7595 MB / 3.281 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002637/5.972, allocations: 65.45 kB / 3.281 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.303e-05/5.972, allocations: 26.94 kB / 3.281 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/5.972, allocations: 0 / 3.281 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of Templates: time 0.02565/5.998, allocations: 17.29 MB / 3.298 GB, free: 248.9 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Validation_LosslessPipe.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,res.dp,res.sta_a.T,res.sta_b.T Variables in the result:m_flow.duration,m_flow.height,m_flow.offset,m_flow.startTime,res._dp_start,res._m_flow_start,res.allowFlowReversal,res.dp,res.from_dp,res.m_flow_nominal,res.m_flow_small,res.port_a.Xi_outflow[1],res.port_a.p,res.port_b.Xi_outflow[1],res.port_b.p,res.show_T,res.sta_a.T,res.sta_a.p,res.sta_b.T,res.sta_b.p,sin.T,sin.T_in_internal,sin.X[1],sin.X[2],sin.Xi_in_internal[1],sin.flowDirection,sin.nPorts,sin.p,sin.ports[1].Xi_outflow[1],sin.ports[1].p,sin.verifyInputs,sou.T,sou.T_in_internal,sou.X[1],sou.X[2],sou.Xi_in_internal[1],sou.flowDirection,sou.m_flow,sou.nPorts,sou.p_in_internal,sou.ports[1].Xi_outflow[1],sou.ports[1].p,sou.verifyInputs,time