Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.886/0.886, allocations: 141.8 MB / 149.3 MB, free: 9.211 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 184.8 kB / 182.2 MB, free: 9.434 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.621/1.621, allocations: 221.5 MB / 436.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009985/0.0009983, allocations: 88.03 kB / 0.5074 GB, free: 10.1 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001813/0.001813, allocations: 282.8 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.609e-05/2.619e-05, allocations: 4 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.518/0.518, allocations: 82.77 MB / 0.7575 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.954/5.472, allocations: 1.831 GB / 2.589 GB, free: 229 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/5.472, allocations: 95.88 kB / 2.589 GB, free: 229 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.819/11.29, allocations: 1.794 GB / 4.383 GB, free: 35.65 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.653e-06/11.29, allocations: 0 / 4.383 GB, free: 35.65 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001081/11.29, allocations: 31.98 kB / 4.383 GB, free: 35.62 MB / 0.698 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.00184/11.29, allocations: 1.162 MB / 4.384 GB, free: 34.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/11.29, allocations: 8.031 kB / 4.384 GB, free: 34.39 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007524/11.29, allocations: 186.4 kB / 4.384 GB, free: 34.21 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/11.3, allocations: 1.097 MB / 4.386 GB, free: 33.06 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/11.3, allocations: 16 kB / 4.386 GB, free: 33.04 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.096e-05/11.3, allocations: 36 kB / 4.386 GB, free: 33.01 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006378/11.3, allocations: 470.3 kB / 4.386 GB, free: 32.55 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007616/11.3, allocations: 0.6688 MB / 4.387 GB, free: 31.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/11.3, allocations: 3.938 kB / 4.387 GB, free: 31.79 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.311e-05/11.3, allocations: 4 kB / 4.387 GB, free: 31.79 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/11.3, allocations: 12 kB / 4.387 GB, free: 31.78 MB / 0.698 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.003017/11.3, allocations: 4.484 MB / 4.391 GB, free: 26.93 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004581/11.3, allocations: 439.4 kB / 4.392 GB, free: 26.48 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/11.3, allocations: 234.8 kB / 4.392 GB, free: 26.25 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002642/11.3, allocations: 198.2 kB / 4.392 GB, free: 26.02 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/11.3, allocations: 265.2 kB / 4.392 GB, free: 25.74 MB / 0.698 GB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/11.3, allocations: 0 / 4.392 GB, free: 25.74 MB / 0.698 GB Notification: Performance of matching and sorting (n=31): time 0.001541/11.3, allocations: 0.7538 MB / 4.393 GB, free: 24.98 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/11.3, allocations: 85.11 kB / 4.393 GB, free: 24.88 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008499/11.3, allocations: 0.856 MB / 4.394 GB, free: 24 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/11.3, allocations: 29.7 kB / 4.394 GB, free: 23.97 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/11.3, allocations: 492.1 kB / 4.394 GB, free: 23.48 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.274e-05/11.31, allocations: 106.5 kB / 4.394 GB, free: 23.38 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.055e-05/11.31, allocations: 0 / 4.394 GB, free: 23.38 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.131e-05/11.31, allocations: 326 kB / 4.395 GB, free: 23.05 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/11.31, allocations: 180.8 kB / 4.395 GB, free: 22.88 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/11.31, allocations: 495.9 kB / 4.395 GB, free: 22.25 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/11.31, allocations: 258.1 kB / 4.396 GB, free: 22 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/11.31, allocations: 0 / 4.396 GB, free: 22 MB / 0.698 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001356/11.31, allocations: 0.8949 MB / 4.397 GB, free: 21.09 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004274/11.31, allocations: 2.129 MB / 4.399 GB, free: 18.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/11.31, allocations: 8 kB / 4.399 GB, free: 18.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003877/11.31, allocations: 216.7 kB / 4.399 GB, free: 18.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/11.31, allocations: 67.84 kB / 4.399 GB, free: 18.51 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008232/11.31, allocations: 1.101 MB / 4.4 GB, free: 17.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007962/11.31, allocations: 91.52 kB / 4.4 GB, free: 17.29 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.727e-05/11.31, allocations: 24 kB / 4.4 GB, free: 17.27 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/11.31, allocations: 7.938 kB / 4.4 GB, free: 17.26 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009332/11.31, allocations: 0.5896 MB / 4.401 GB, free: 16.67 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/11.31, allocations: 4 kB / 4.401 GB, free: 16.66 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004284/11.31, allocations: 206.1 kB / 4.401 GB, free: 16.46 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/11.31, allocations: 63.91 kB / 4.401 GB, free: 16.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002874/11.31, allocations: 2.964 MB / 4.404 GB, free: 13.29 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008271/11.32, allocations: 83.67 kB / 4.404 GB, free: 13.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/11.32, allocations: 24 kB / 4.404 GB, free: 13.19 MB / 0.698 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.0001542/11.32, allocations: 121.8 kB / 4.404 GB, free: 13.06 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008102/11.32, allocations: 0.6252 MB / 4.405 GB, free: 12.43 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.059e-05/11.32, allocations: 94.88 kB / 4.405 GB, free: 12.33 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009253/11.32, allocations: 0.6433 MB / 4.405 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/11.32, allocations: 4 kB / 4.405 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/11.32, allocations: 0 / 4.405 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/11.32, allocations: 3.984 kB / 4.405 GB, free: 11.67 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001849/11.32, allocations: 1.478 MB / 4.407 GB, free: 10.12 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/11.32, allocations: 0 / 4.407 GB, free: 10.12 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/11.32, allocations: 23.98 kB / 4.407 GB, free: 10.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/11.32, allocations: 182.1 kB / 4.407 GB, free: 9.922 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/11.32, allocations: 7.984 kB / 4.407 GB, free: 9.914 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006675/11.32, allocations: 0.9854 MB / 4.408 GB, free: 8.902 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/11.32, allocations: 4.031 kB / 4.408 GB, free: 8.898 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000813/11.32, allocations: 0.8519 MB / 4.409 GB, free: 7.965 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002872/11.32, allocations: 215.8 kB / 4.409 GB, free: 7.734 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.502e-05/11.32, allocations: 4 kB / 4.409 GB, free: 7.73 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004819/11.32, allocations: 55.78 kB / 4.409 GB, free: 7.676 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.478e-05/11.32, allocations: 27.97 kB / 4.409 GB, free: 7.648 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/11.32, allocations: 8 kB / 4.409 GB, free: 7.641 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006625/11.32, allocations: 0.6691 MB / 4.41 GB, free: 6.961 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/11.32, allocations: 3.938 kB / 4.41 GB, free: 6.957 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001542/11.32, allocations: 483.5 kB / 4.41 GB, free: 6.484 MB / 0.698 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.002085/11.33, allocations: 2.783 MB / 4.413 GB, free: 3.629 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001399/11.33, allocations: 0.9789 MB / 4.414 GB, free: 2.613 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/11.33, allocations: 0 / 4.414 GB, free: 2.613 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003343/11.33, allocations: 204.5 kB / 4.414 GB, free: 2.418 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/11.33, allocations: 405 kB / 4.414 GB, free: 2.027 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/11.33, allocations: 1.612 MB / 4.416 GB, free: 356 kB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4004/11.73, allocations: 1.201 MB / 4.417 GB, free: 187.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002375/11.74, allocations: 0.6407 MB / 4.418 GB, free: 187.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004053/11.74, allocations: 296.1 kB / 4.418 GB, free: 187.9 MB / 0.698 GB Notification: Performance of SimCode: time 2.014e-06/11.74, allocations: 0 / 4.418 GB, free: 187.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06076/11.8, allocations: 32.56 MB / 4.45 GB, free: 187.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/11.8, allocations: 201.8 kB / 4.45 GB, free: 187.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.069/14.87, allocations: 0 / 4.45 GB, free: 187.3 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesDpOptimised.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesDpOptimised.pipe 2>&1)