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.351/1.351, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 178.8 kB / 326.5 MB, free: 2.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.0009016/0.0009015, allocations: 84.56 kB / 0.6821 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.000338, allocations: 9.5 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2249, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.015/5.24, allocations: 2.178 GB / 3.078 GB, free: 249 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/5.24, allocations: 88.53 kB / 3.078 GB, free: 249 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.4086/5.649, allocations: 208.6 MB / 3.282 GB, free: 138.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.184e-06/5.649, allocations: 0 / 3.282 GB, free: 138.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.013e-05/5.649, allocations: 8 kB / 3.282 GB, free: 138.6 MB / 0.8855 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.001705/5.65, allocations: 0.6098 MB / 3.282 GB, free: 137.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/5.651, allocations: 16.03 kB / 3.282 GB, free: 137.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/5.651, allocations: 47.69 kB / 3.282 GB, free: 137.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/5.651, allocations: 278.9 kB / 3.283 GB, free: 137.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/5.651, allocations: 12.33 kB / 3.283 GB, free: 137.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/5.651, allocations: 23.92 kB / 3.283 GB, free: 137.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004837/5.652, allocations: 238.9 kB / 3.283 GB, free: 137.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/5.652, allocations: 3.938 kB / 3.283 GB, free: 137.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/5.652, allocations: 15.94 kB / 3.283 GB, free: 137.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/5.652, allocations: 8 kB / 3.283 GB, free: 137.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004889/5.652, allocations: 247.8 kB / 3.283 GB, free: 137 MB / 0.8855 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.001193/5.654, allocations: 0.8238 MB / 3.284 GB, free: 136.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/5.654, allocations: 150.5 kB / 3.284 GB, free: 135.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002417/5.654, allocations: 182.3 kB / 3.284 GB, free: 135.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/5.654, allocations: 42.5 kB / 3.284 GB, free: 135.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/5.654, allocations: 4 kB / 3.284 GB, free: 135.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0007779/5.655, allocations: 304 kB / 3.285 GB, free: 135.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/5.655, allocations: 59.41 kB / 3.285 GB, free: 135.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/5.655, allocations: 212.2 kB / 3.285 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/5.655, allocations: 33.69 kB / 3.285 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.731e-05/5.655, allocations: 136.3 kB / 3.285 GB, free: 134.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/5.655, allocations: 39.36 kB / 3.285 GB, free: 134.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/5.655, allocations: 8 kB / 3.285 GB, free: 134.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.362e-05/5.655, allocations: 330.8 kB / 3.285 GB, free: 134.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/5.656, allocations: 79.94 kB / 3.286 GB, free: 134.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/5.656, allocations: 121.9 kB / 3.286 GB, free: 134.3 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/5.656, allocations: 79.95 kB / 3.286 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/5.656, allocations: 0 / 3.286 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004053/5.656, allocations: 229.3 kB / 3.286 GB, free: 134 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/5.656, allocations: 8 kB / 3.286 GB, free: 134 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/5.656, allocations: 0 / 3.286 GB, free: 134 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/5.657, allocations: 0 / 3.286 GB, free: 134 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/5.657, allocations: 35.97 kB / 3.286 GB, free: 134 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/5.657, allocations: 11.89 kB / 3.286 GB, free: 134 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/5.657, allocations: 23.83 kB / 3.286 GB, free: 133.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.311e-05/5.657, allocations: 16.03 kB / 3.286 GB, free: 133.9 MB / 0.8855 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 () * Number of clocked 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.0001132/5.657, allocations: 141.5 kB / 3.286 GB, free: 133.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/5.657, allocations: 23.78 kB / 3.286 GB, free: 133.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.775e-05/5.657, allocations: 37.83 kB / 3.286 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/5.657, allocations: 0 / 3.286 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/5.657, allocations: 3.984 kB / 3.286 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/5.657, allocations: 7.938 kB / 3.286 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009496/5.658, allocations: 0.6758 MB / 3.287 GB, free: 132.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/5.658, allocations: 7.953 kB / 3.287 GB, free: 132.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/5.658, allocations: 35.91 kB / 3.287 GB, free: 132.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/5.658, allocations: 4 kB / 3.287 GB, free: 132.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/5.658, allocations: 0 / 3.287 GB, free: 132.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/5.658, allocations: 7.938 kB / 3.287 GB, free: 132.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/5.659, allocations: 4 kB / 3.287 GB, free: 132.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004847/5.659, allocations: 454.9 kB / 3.287 GB, free: 132.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/5.659, allocations: 120.7 kB / 3.287 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/5.659, allocations: 4 kB / 3.287 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/5.659, allocations: 15.98 kB / 3.288 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/5.659, allocations: 15.92 kB / 3.288 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/5.659, allocations: 4 kB / 3.288 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001337/5.66, allocations: 184.5 kB / 3.288 GB, free: 132 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.31e-07/5.66, allocations: 0 / 3.288 GB, free: 132 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006795/5.66, allocations: 131.9 kB / 3.288 GB, free: 131.9 MB / 0.8855 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 () * Number of clocked 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.001497/5.662, allocations: 0.8668 MB / 3.289 GB, free: 131 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000438/5.662, allocations: 183.8 kB / 3.289 GB, free: 130.8 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/5.662, allocations: 0 / 3.289 GB, free: 130.8 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/5.662, allocations: 104 kB / 3.289 GB, free: 130.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006166/5.663, allocations: 132.5 kB / 3.289 GB, free: 130.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007089/5.664, allocations: 498.2 kB / 3.29 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/5.664, allocations: 0.756 MB / 3.29 GB, free: 129.3 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002441/5.664, allocations: 61.91 kB / 3.29 GB, free: 129.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.085e-05/5.664, allocations: 19.44 kB / 3.29 GB, free: 129.2 MB / 0.8855 GB Notification: Performance of SimCode: time 5.81e-07/5.664, allocations: 0 / 3.29 GB, free: 129.2 MB / 0.8855 GB Notification: Performance of Templates: time 0.02078/5.685, allocations: 14.84 MB / 3.305 GB, free: 114.4 MB / 0.8855 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