Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.conf.json 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/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_10_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_10_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009099/0.009099, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.683/2.683, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003803, allocations: 15.98 kB / 0.8729 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6929/0.6933, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1746/0.868, allocations: 157.3 MB / 1.177 GB, free: 1.941 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003418/0.8714, allocations: 1.761 MB / 1.178 GB, free: 180 kB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004474/0.8719, allocations: 11.88 kB / 1.178 GB, free: 168 kB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005596/0.8725, allocations: 135.2 kB / 1.179 GB, free: 32 kB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001426/0.8739, allocations: 0.498 MB / 1.179 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.8751, allocations: 343 kB / 1.179 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.003598/0.8787, allocations: 3.468 MB / 1.183 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.8799, allocations: 0.7505 MB / 1.184 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.8816, allocations: 0.8986 MB / 1.184 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001154/0.8828, allocations: 0.7194 MB / 1.185 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.883, allocations: 32 kB / 1.185 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.8845, allocations: 0.799 MB / 1.186 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003682/0.8849, allocations: 286.8 kB / 1.186 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0007776/0.8856, allocations: 0.5262 MB / 1.187 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001751/0.8874, allocations: 1.366 MB / 1.188 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.8874, allocations: 0 / 1.188 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.342e-06/0.8874, allocations: 0 / 1.188 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.76e-05/0.8875, allocations: 0 / 1.188 GB, free: 6.316 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002268/0.8897, allocations: 1.256 MB / 1.189 GB, free: 4.996 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.8898, allocations: 12.03 kB / 1.189 GB, free: 4.984 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/0.8899, allocations: 102.5 kB / 1.189 GB, free: 4.875 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008144/0.8908, allocations: 190.4 kB / 1.19 GB, free: 4.688 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.8921, allocations: 0.7983 MB / 1.19 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.8922, allocations: 45 kB / 1.19 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.8923, allocations: 56 kB / 1.19 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.8935, allocations: 0.7966 MB / 1.191 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.8936, allocations: 3.938 kB / 1.191 GB, free: 2.855 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/0.8936, allocations: 24 kB / 1.191 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.8936, allocations: 15.94 kB / 1.191 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009816/0.8946, allocations: 0.55 MB / 1.192 GB, free: 2.266 MB / 0.9356 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.004171/0.8988, allocations: 4.595 MB / 1.196 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007546/0.8996, allocations: 431 kB / 1.197 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004014/0.9, allocations: 251.6 kB / 1.197 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002813/0.9003, allocations: 194.2 kB / 1.197 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004923/0.9008, allocations: 293.1 kB / 1.197 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=31): time 1.894e-06/0.9008, allocations: 4 kB / 1.197 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=31): time 0.001377/0.9022, allocations: 0.6498 MB / 1.198 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/0.9023, allocations: 81.11 kB / 1.198 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/0.9038, allocations: 1.114 MB / 1.199 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.9039, allocations: 37.7 kB / 1.199 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004153/0.9043, allocations: 0.4921 MB / 1.2 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.9044, allocations: 110.5 kB / 1.2 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.9045, allocations: 41.7 kB / 1.2 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.9046, allocations: 326 kB / 1.2 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.905, allocations: 216.6 kB / 1.2 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006378/0.9056, allocations: 0.527 MB / 1.201 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009184/0.9066, allocations: 0.6478 MB / 1.202 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.9066, allocations: 8 kB / 1.202 GB, free: 7.566 MB / 0.9512 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001274/0.9079, allocations: 0.7278 MB / 1.202 GB, free: 6.824 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.000184/0.9081, allocations: 271.4 kB / 1.203 GB, free: 6.477 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.9081, allocations: 7.984 kB / 1.203 GB, free: 6.469 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.9081, allocations: 19.81 kB / 1.203 GB, free: 6.449 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004361/0.9086, allocations: 99.88 kB / 1.203 GB, free: 6.352 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.9086, allocations: 15.92 kB / 1.203 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007245/0.9093, allocations: 99.47 kB / 1.203 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.169e-05/0.9094, allocations: 24 kB / 1.203 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/0.9094, allocations: 4 kB / 1.203 GB, free: 6.211 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009675/0.9104, allocations: 0.5402 MB / 1.203 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.9104, allocations: 8 kB / 1.203 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.9104, allocations: 8 kB / 1.203 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.9108, allocations: 104.5 kB / 1.203 GB, free: 5.547 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.9108, allocations: 15.92 kB / 1.203 GB, free: 5.531 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007863/0.9116, allocations: 91.53 kB / 1.204 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.29e-05/0.9117, allocations: 24 kB / 1.204 GB, free: 5.418 MB / 0.9512 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 (pulse_p.count,$PRE.pulse_p.count,pulse_p.T_start,$PRE.pulse_p.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005809/0.9123, allocations: 470.3 kB / 1.204 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.9124, allocations: 102.7 kB / 1.204 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009496/0.9134, allocations: 0.499 MB / 1.205 GB, free: 4.34 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.9134, allocations: 7.938 kB / 1.205 GB, free: 4.332 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.9134, allocations: 0 / 1.205 GB, free: 4.332 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.9134, allocations: 3.984 kB / 1.205 GB, free: 4.328 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.9156, allocations: 1.399 MB / 1.206 GB, free: 2.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.9156, allocations: 0 / 1.206 GB, free: 2.852 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.9159, allocations: 71.83 kB / 1.206 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.9159, allocations: 0 / 1.206 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.9159, allocations: 15.98 kB / 1.206 GB, free: 2.766 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.916, allocations: 4 kB / 1.206 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.916, allocations: 4 kB / 1.206 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008725/0.9168, allocations: 0.6141 MB / 1.207 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.9172, allocations: 223.7 kB / 1.207 GB, free: 1.867 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.9173, allocations: 11.98 kB / 1.207 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005338/0.9179, allocations: 43.95 kB / 1.207 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.464e-05/0.918, allocations: 31.91 kB / 1.207 GB, free: 1.781 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.918, allocations: 12 kB / 1.207 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001055/0.9191, allocations: 0.7914 MB / 1.208 GB, free: 0.9688 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9191, allocations: 0 / 1.208 GB, free: 0.9688 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001216/0.9203, allocations: 411.4 kB / 1.208 GB, free: 0.5664 MB / 0.9512 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 (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001506/0.9218, allocations: 1.234 MB / 1.209 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001534/0.9234, allocations: 0.8244 MB / 1.21 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.9234, allocations: 0 / 1.21 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004128/0.9238, allocations: 211.9 kB / 1.21 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/0.9263, allocations: 452.8 kB / 1.211 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.9413, allocations: 8.839 MB / 1.219 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/0.9422, allocations: 1.173 MB / 1.221 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001216/0.9434, allocations: 419.6 kB / 1.221 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004725/0.9439, allocations: 331.3 kB / 1.221 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of SimCode: time 1.232e-06/0.9439, allocations: 0 / 1.221 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04601/0.99, allocations: 24.96 MB / 1.246 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002409/0.9902, allocations: 264.4 kB / 1.246 GB, free: 9.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/3.49, allocations: 0 / 1.246 GB, free: 9.68 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches