Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.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.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.461/1.461, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001226/0.001226, allocations: 179.9 kB / 326.5 MB, free: 2.262 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.955/1.955, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.001088/0.001089, allocations: 98.34 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003554, allocations: 8.594 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2625, allocations: 106.3 MB / 0.9001 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.269/6.531, allocations: 2.184 GB / 3.085 GB, free: 248.2 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003967/6.532, allocations: 93.84 kB / 3.085 GB, free: 248.2 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 6.337/12.87, allocations: 1.737 GB / 4.822 GB, free: 256.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.916e-06/12.87, allocations: 0 / 4.822 GB, free: 256.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002434/12.87, allocations: 30.19 kB / 4.822 GB, free: 256.4 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.004687/12.87, allocations: 1.436 MB / 4.823 GB, free: 255.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/12.87, allocations: 7.312 kB / 4.823 GB, free: 255.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/12.88, allocations: 186.4 kB / 4.823 GB, free: 255.7 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003298/12.88, allocations: 1.112 MB / 4.825 GB, free: 255.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.211e-05/12.88, allocations: 41.12 kB / 4.825 GB, free: 255.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002635/12.88, allocations: 58.72 kB / 4.825 GB, free: 255.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/12.88, allocations: 0.7765 MB / 4.825 GB, free: 255.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/12.88, allocations: 6.75 kB / 4.825 GB, free: 255.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.061e-05/12.88, allocations: 20.88 kB / 4.825 GB, free: 255.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/12.88, allocations: 13.94 kB / 4.825 GB, free: 255.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008288/12.88, allocations: 0.5172 MB / 4.826 GB, free: 255.2 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.00418/12.89, allocations: 4.586 MB / 4.83 GB, free: 251.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000605/12.89, allocations: 419.5 kB / 4.831 GB, free: 251.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002805/12.89, allocations: 201.2 kB / 4.831 GB, free: 251.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004472/12.89, allocations: 292.5 kB / 4.831 GB, free: 251.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/12.89, allocations: 0 / 4.831 GB, free: 251.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=31): time 0.002978/12.89, allocations: 1.223 MB / 4.833 GB, free: 251.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/12.89, allocations: 86.95 kB / 4.833 GB, free: 251.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/12.89, allocations: 0.9886 MB / 4.834 GB, free: 251.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/12.89, allocations: 32.95 kB / 4.834 GB, free: 251 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/12.89, allocations: 495.3 kB / 4.834 GB, free: 250.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.669e-05/12.89, allocations: 113.8 kB / 4.834 GB, free: 250.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.101e-05/12.89, allocations: 7.75 kB / 4.834 GB, free: 250.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.944e-05/12.89, allocations: 328.6 kB / 4.835 GB, free: 250.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/12.89, allocations: 185.7 kB / 4.835 GB, free: 250.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004969/12.89, allocations: 0.4995 MB / 4.835 GB, free: 250.1 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/12.89, allocations: 295.3 kB / 4.835 GB, free: 250.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/12.89, allocations: 3.875 kB / 4.835 GB, free: 250.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001372/12.89, allocations: 0.9045 MB / 4.836 GB, free: 250 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006306/12.89, allocations: 2.133 MB / 4.838 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/12.89, allocations: 7.375 kB / 4.838 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005204/12.9, allocations: 229.9 kB / 4.839 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/12.9, allocations: 57.83 kB / 4.839 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008642/12.9, allocations: 1.01 MB / 4.84 GB, free: 247.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009539/12.9, allocations: 104.5 kB / 4.84 GB, free: 247.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-05/12.9, allocations: 31 kB / 4.84 GB, free: 247.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/12.9, allocations: 3.156 kB / 4.84 GB, free: 247.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001254/12.9, allocations: 0.7342 MB / 4.841 GB, free: 247.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/12.9, allocations: 7.719 kB / 4.841 GB, free: 247.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004652/12.9, allocations: 209.4 kB / 4.841 GB, free: 247.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/12.9, allocations: 64.42 kB / 4.841 GB, free: 247.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00328/12.9, allocations: 3.15 MB / 4.844 GB, free: 245.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000965/12.9, allocations: 93.42 kB / 4.844 GB, free: 245.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/12.9, allocations: 25.62 kB / 4.844 GB, free: 245.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 32 * 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 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007241/12.9, allocations: 473.9 kB / 4.844 GB, free: 245.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/12.9, allocations: 98.38 kB / 4.845 GB, free: 245.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/12.91, allocations: 0.7137 MB / 4.845 GB, free: 245.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/12.91, allocations: 3.75 kB / 4.845 GB, free: 245.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/12.91, allocations: 0 / 4.845 GB, free: 245.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/12.91, allocations: 7.641 kB / 4.845 GB, free: 245.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/12.91, allocations: 1.613 MB / 4.847 GB, free: 244.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/12.91, allocations: 6.594 kB / 4.847 GB, free: 244.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/12.91, allocations: 24.14 kB / 4.847 GB, free: 244.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004361/12.91, allocations: 230.3 kB / 4.847 GB, free: 244.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/12.91, allocations: 10.62 kB / 4.847 GB, free: 244.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007434/12.91, allocations: 0.9706 MB / 4.848 GB, free: 244.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/12.91, allocations: 1.875 kB / 4.848 GB, free: 244.2 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/12.91, allocations: 0.9212 MB / 4.849 GB, free: 243.8 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004319/12.91, allocations: 220.5 kB / 4.849 GB, free: 243.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.465e-05/12.91, allocations: 7.312 kB / 4.849 GB, free: 243.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005021/12.91, allocations: 57.53 kB / 4.849 GB, free: 243.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.85e-05/12.91, allocations: 38.42 kB / 4.849 GB, free: 243.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/12.91, allocations: 7.656 kB / 4.849 GB, free: 243.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0009069/12.91, allocations: 0.7903 MB / 4.85 GB, free: 243.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.1e-07/12.91, allocations: 0 / 4.85 GB, free: 243.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00181/12.91, allocations: 0.5111 MB / 4.851 GB, free: 243.5 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: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001472/12.92, allocations: 0.9684 MB / 4.851 GB, free: 243.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001821/12.92, allocations: 1.054 MB / 4.852 GB, free: 243.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/12.92, allocations: 1.312 kB / 4.852 GB, free: 243.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004441/12.92, allocations: 234 kB / 4.853 GB, free: 243.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/12.92, allocations: 465.7 kB / 4.853 GB, free: 243 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/12.92, allocations: 1.967 MB / 4.855 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005536/12.92, allocations: 1.204 MB / 4.856 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0009261/12.92, allocations: 323.1 kB / 4.857 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/12.92, allocations: 62.81 kB / 4.857 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of SimCode: time 1.092e-06/12.92, allocations: 3.688 kB / 4.857 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of Templates: time 0.04354/12.97, allocations: 29.71 MB / 4.886 GB, free: 235.7 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches