Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.39/2.39, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001408/0.001408, allocations: 184.5 kB / 487.4 MB, free: 5.016 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.605/1.605, allocations: 221.5 MB / 0.7824 GB, free: 0.9414 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009869/0.0009867, allocations: 91.34 kB / 0.9219 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.276e-05/2.267e-05, allocations: 5.875 kB / 1.067 GB, free: 185.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3014, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.292/5.594, allocations: 1.871 GB / 3.077 GB, free: 362.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/5.594, allocations: 90.56 kB / 3.077 GB, free: 362.7 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 6.071/11.67, allocations: 1.794 GB / 4.871 GB, free: 356.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.144e-06/11.67, allocations: 1.312 kB / 4.871 GB, free: 356.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001135/11.67, allocations: 27.94 kB / 4.871 GB, free: 356.2 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.002063/11.67, allocations: 1.15 MB / 4.873 GB, free: 355.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/11.67, allocations: 9.938 kB / 4.873 GB, free: 355.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007946/11.67, allocations: 192.3 kB / 4.873 GB, free: 355.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002384/11.67, allocations: 1.098 MB / 4.874 GB, free: 355.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/11.67, allocations: 15.62 kB / 4.874 GB, free: 355.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/11.67, allocations: 37.31 kB / 4.874 GB, free: 355.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007251/11.67, allocations: 470.2 kB / 4.874 GB, free: 355.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007969/11.67, allocations: 0.6705 MB / 4.875 GB, free: 355.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/11.67, allocations: 6.875 kB / 4.875 GB, free: 355.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.257e-05/11.67, allocations: 0 / 4.875 GB, free: 355.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/11.67, allocations: 17.28 kB / 4.875 GB, free: 355.1 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.00324/11.68, allocations: 4.475 MB / 4.879 GB, free: 351.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005068/11.68, allocations: 437.5 kB / 4.88 GB, free: 351.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/11.68, allocations: 234.1 kB / 4.88 GB, free: 351.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002815/11.68, allocations: 193.7 kB / 4.88 GB, free: 351.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003789/11.68, allocations: 269 kB / 4.88 GB, free: 351.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 1.894e-06/11.68, allocations: 0 / 4.88 GB, free: 351.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.001563/11.68, allocations: 0.7594 MB / 4.881 GB, free: 351.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/11.68, allocations: 84.55 kB / 4.881 GB, free: 351.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008557/11.68, allocations: 0.8522 MB / 4.882 GB, free: 351.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/11.68, allocations: 30.55 kB / 4.882 GB, free: 351.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002985/11.68, allocations: 491.4 kB / 4.883 GB, free: 350.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 6.499e-05/11.68, allocations: 104.6 kB / 4.883 GB, free: 350.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.011e-05/11.68, allocations: 0 / 4.883 GB, free: 350.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.952e-05/11.68, allocations: 326.8 kB / 4.883 GB, free: 350.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/11.68, allocations: 179.7 kB / 4.883 GB, free: 350.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003514/11.68, allocations: 497.9 kB / 4.884 GB, free: 350.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/11.68, allocations: 266.2 kB / 4.884 GB, free: 350.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/11.68, allocations: 0 / 4.884 GB, free: 350.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001354/11.68, allocations: 0.8967 MB / 4.885 GB, free: 350 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004045/11.68, allocations: 2.126 MB / 4.887 GB, free: 347.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/11.68, allocations: 7.75 kB / 4.887 GB, free: 347.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003859/11.68, allocations: 222.2 kB / 4.887 GB, free: 347.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/11.68, allocations: 62.92 kB / 4.887 GB, free: 347.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008406/11.68, allocations: 1.099 MB / 4.888 GB, free: 347.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008089/11.69, allocations: 86.59 kB / 4.888 GB, free: 347.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-05/11.69, allocations: 28.78 kB / 4.888 GB, free: 347.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-06/11.69, allocations: 3.688 kB / 4.888 GB, free: 347.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009443/11.69, allocations: 0.6068 MB / 4.889 GB, free: 347.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/11.69, allocations: 3.844 kB / 4.889 GB, free: 347.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004276/11.69, allocations: 195.6 kB / 4.889 GB, free: 347.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/11.69, allocations: 63.38 kB / 4.889 GB, free: 347.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00278/11.69, allocations: 2.972 MB / 4.892 GB, free: 345.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007068/11.69, allocations: 73 kB / 4.892 GB, free: 345.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/11.69, allocations: 25.78 kB / 4.892 GB, free: 345.8 MB / 1.151 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 () * 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.000143/11.69, allocations: 124 kB / 4.892 GB, free: 345.7 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007701/11.69, allocations: 0.6086 MB / 4.893 GB, free: 345.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.354e-05/11.69, allocations: 95.64 kB / 4.893 GB, free: 345.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000898/11.69, allocations: 0.65 MB / 4.894 GB, free: 345.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/11.69, allocations: 7.547 kB / 4.894 GB, free: 345.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/11.69, allocations: 3.25 kB / 4.894 GB, free: 345.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/11.69, allocations: 7.688 kB / 4.894 GB, free: 345.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/11.69, allocations: 1.468 MB / 4.895 GB, free: 344.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/11.69, allocations: 3.906 kB / 4.895 GB, free: 344.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/11.69, allocations: 26.67 kB / 4.895 GB, free: 344.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002726/11.69, allocations: 184.2 kB / 4.895 GB, free: 344.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/11.69, allocations: 3.125 kB / 4.895 GB, free: 344.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006338/11.7, allocations: 0.9809 MB / 4.896 GB, free: 344.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/11.7, allocations: 7.625 kB / 4.896 GB, free: 344.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007751/11.7, allocations: 0.8501 MB / 4.897 GB, free: 344 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/11.7, allocations: 211.6 kB / 4.897 GB, free: 343.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.47e-05/11.7, allocations: 3.844 kB / 4.897 GB, free: 343.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/11.7, allocations: 53.06 kB / 4.897 GB, free: 343.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.933e-05/11.7, allocations: 31.67 kB / 4.897 GB, free: 343.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/11.7, allocations: 16.52 kB / 4.897 GB, free: 343.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006955/11.7, allocations: 0.6641 MB / 4.898 GB, free: 343.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.4e-07/11.7, allocations: 0 / 4.898 GB, free: 343.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001404/11.7, allocations: 487.2 kB / 4.898 GB, free: 343.7 MB / 1.151 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) * 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.002163/11.7, allocations: 2.775 MB / 4.901 GB, free: 342.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001375/11.7, allocations: 0.9834 MB / 4.902 GB, free: 341.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/11.7, allocations: 0 / 4.902 GB, free: 341.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003342/11.7, allocations: 209 kB / 4.902 GB, free: 341.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/11.71, allocations: 398.1 kB / 4.903 GB, free: 341.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/11.71, allocations: 1.612 MB / 4.904 GB, free: 341.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005597/11.71, allocations: 1.21 MB / 4.905 GB, free: 340.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001597/11.71, allocations: 0.6441 MB / 4.906 GB, free: 340.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/11.71, allocations: 295.2 kB / 4.906 GB, free: 340.7 MB / 1.151 GB Notification: Performance of SimCode: time 9.12e-07/11.71, allocations: 0 / 4.906 GB, free: 340.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.058/11.77, allocations: 32.54 MB / 4.938 GB, free: 331.4 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/11.77, allocations: 198.3 kB / 4.938 GB, free: 331.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.067/14.84, allocations: 2.25 kB / 4.938 GB, free: 331.2 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.fmu > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised_res.mat does not exist to compare? outputFormat=mat