Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 91.38 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 177.8 kB / 16.92 MB, free: 6.652 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.325/1.325, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.658/2.658, allocations: 462.6 MB / 0.737 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003691, allocations: 9.031 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3077, allocations: 159.6 MB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1635/0.4713, allocations: 157.3 MB / 1.213 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003196/0.4746, allocations: 1.747 MB / 1.215 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004502/0.475, allocations: 7.938 kB / 1.215 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006182/0.4757, allocations: 135.2 kB / 1.215 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001485/0.4772, allocations: 0.4902 MB / 1.215 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.4784, allocations: 352.8 kB / 1.216 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003653/0.482, allocations: 3.475 MB / 1.219 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.4834, allocations: 0.7543 MB / 1.22 GB, free: 72 kB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.4856, allocations: 0.8947 MB / 1.221 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.4869, allocations: 0.7194 MB / 1.221 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002008/0.4871, allocations: 36 kB / 1.221 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001795/0.4889, allocations: 0.8029 MB / 1.222 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004576/0.4894, allocations: 278.9 kB / 1.222 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.4905, allocations: 0.5301 MB / 1.223 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.4919, allocations: 1.005 MB / 1.224 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.492, allocations: 0 / 1.224 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.335e-06/0.492, allocations: 0 / 1.224 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.944e-05/0.492, allocations: 0 / 1.224 GB, free: 11.79 MB / 0.9825 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.002581/0.4946, allocations: 1.26 MB / 1.225 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.4947, allocations: 15.97 kB / 1.225 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009427/0.4956, allocations: 186.4 kB / 1.225 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.4971, allocations: 0.7984 MB / 1.226 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.987e-05/0.4971, allocations: 41 kB / 1.226 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.4973, allocations: 60 kB / 1.226 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.4986, allocations: 0.8042 MB / 1.227 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.4986, allocations: 3.938 kB / 1.227 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.391e-05/0.4987, allocations: 24 kB / 1.227 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.4987, allocations: 12 kB / 1.227 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009826/0.4997, allocations: 0.5501 MB / 1.228 GB, free: 7.84 MB / 0.9825 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.004292/0.504, allocations: 4.598 MB / 1.232 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007339/0.5047, allocations: 434.2 kB / 1.232 GB, free: 2.422 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003914/0.5051, allocations: 248.7 kB / 1.233 GB, free: 2.176 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002997/0.5055, allocations: 198.2 kB / 1.233 GB, free: 1.945 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005085/0.506, allocations: 289.6 kB / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=31): time 1.893e-06/0.506, allocations: 0 / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31): time 0.001472/0.5075, allocations: 0.6544 MB / 1.234 GB, free: 0.9844 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.5075, allocations: 81.11 kB / 1.234 GB, free: 0.8867 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.5089, allocations: 1.11 MB / 1.235 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.509, allocations: 41.7 kB / 1.235 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/0.5094, allocations: 0.4921 MB / 1.235 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.984e-05/0.5095, allocations: 106.5 kB / 1.236 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.5096, allocations: 41.92 kB / 1.236 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5097, allocations: 329.9 kB / 1.236 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.5101, allocations: 216.6 kB / 1.236 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.5107, allocations: 0.5231 MB / 1.237 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008956/0.5116, allocations: 0.6344 MB / 1.237 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.5116, allocations: 0 / 1.237 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001298/0.5129, allocations: 0.7337 MB / 1.238 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.5131, allocations: 274.9 kB / 1.238 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.5132, allocations: 8.281 kB / 1.238 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.5132, allocations: 15.94 kB / 1.238 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004418/0.5136, allocations: 103.9 kB / 1.238 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.5137, allocations: 15.92 kB / 1.238 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007852/0.5145, allocations: 95.47 kB / 1.238 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.5145, allocations: 24 kB / 1.238 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.5145, allocations: 4 kB / 1.238 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009272/0.5155, allocations: 0.5518 MB / 1.239 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.5155, allocations: 8 kB / 1.239 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.5155, allocations: 8 kB / 1.239 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.5159, allocations: 103.8 kB / 1.239 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.5159, allocations: 11.98 kB / 1.239 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007606/0.5167, allocations: 95.88 kB / 1.239 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.5167, allocations: 24 kB / 1.239 GB, free: 10.98 MB / 0.9981 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.0005817/0.5173, allocations: 468.6 kB / 1.24 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.5175, allocations: 102.8 kB / 1.24 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009749/0.5185, allocations: 0.4951 MB / 1.24 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.5185, allocations: 4 kB / 1.24 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.5185, allocations: 0 / 1.24 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.5185, allocations: 7.984 kB / 1.24 GB, free: 9.902 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.5207, allocations: 1.395 MB / 1.242 GB, free: 8.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5207, allocations: 224 / 1.242 GB, free: 8.43 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.521, allocations: 71.89 kB / 1.242 GB, free: 8.359 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.521, allocations: 7.938 kB / 1.242 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.5211, allocations: 11.98 kB / 1.242 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.5211, allocations: 4 kB / 1.242 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.5211, allocations: 4 kB / 1.242 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008636/0.5219, allocations: 0.61 MB / 1.242 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003541/0.5223, allocations: 219.7 kB / 1.243 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.5225, allocations: 11.98 kB / 1.243 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005019/0.523, allocations: 55.8 kB / 1.243 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.5231, allocations: 27.91 kB / 1.243 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.5231, allocations: 16 kB / 1.243 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001049/0.5242, allocations: 0.7875 MB / 1.243 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5242, allocations: 0 / 1.243 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001193/0.5254, allocations: 407.5 kB / 1.244 GB, free: 6.145 MB / 0.9981 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.0004855/0.5259, allocations: 177.5 kB / 1.244 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001615/0.5275, allocations: 0.8303 MB / 1.245 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5275, allocations: 0 / 1.245 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.5279, allocations: 199.8 kB / 1.245 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002411/0.5303, allocations: 459.4 kB / 1.245 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/0.5338, allocations: 2.103 MB / 1.248 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007983/0.5346, allocations: 1.177 MB / 1.249 GB, free: 1.105 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.5349, allocations: 75.42 kB / 1.249 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of SimCode: time 4.7e-07/0.5349, allocations: 0 / 1.249 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of Templates: time 0.5504/1.085, allocations: 15.76 MB / 1.264 GB, free: 187.9 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches