Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_9_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_9_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.001083/0.001083, allocations: 92.16 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.001652/0.001652, allocations: 183 kB / 16.92 MB, free: 6.926 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.379/1.379, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.43/2.43, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003682, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7665/0.7669, allocations: 142.4 MB / 0.9557 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1774/0.9443, allocations: 157.3 MB / 1.109 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003346/0.9477, allocations: 1.764 MB / 1.111 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004748/0.9482, allocations: 11.94 kB / 1.111 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.000667/0.9489, allocations: 135.2 kB / 1.111 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001602/0.9505, allocations: 498 kB / 1.112 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.9518, allocations: 349.5 kB / 1.112 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003797/0.9556, allocations: 3.485 MB / 1.115 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.9569, allocations: 0.7466 MB / 1.116 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002137/0.9591, allocations: 0.9025 MB / 1.117 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001678/0.9608, allocations: 0.7233 MB / 1.118 GB, free: 8.887 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0002518/0.9611, allocations: 32 kB / 1.118 GB, free: 8.855 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.9631, allocations: 0.799 MB / 1.119 GB, free: 8.055 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0005334/0.9636, allocations: 282.9 kB / 1.119 GB, free: 7.777 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001072/0.9647, allocations: 0.5261 MB / 1.119 GB, free: 7.242 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001512/0.9662, allocations: 1.009 MB / 1.12 GB, free: 6.23 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.9663, allocations: 4 kB / 1.12 GB, free: 6.227 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.923e-06/0.9663, allocations: 0 / 1.12 GB, free: 6.227 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.548e-05/0.9663, allocations: 0 / 1.12 GB, free: 6.227 MB / 0.8731 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.002429/0.9688, allocations: 1.26 MB / 1.122 GB, free: 4.906 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.9688, allocations: 8.031 kB / 1.122 GB, free: 4.898 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009226/0.9697, allocations: 186.5 kB / 1.122 GB, free: 4.715 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.9712, allocations: 0.7982 MB / 1.122 GB, free: 3.859 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.463e-05/0.9712, allocations: 49 kB / 1.123 GB, free: 3.809 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.9713, allocations: 56 kB / 1.123 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.9726, allocations: 0.8005 MB / 1.123 GB, free: 2.879 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.9727, allocations: 0 / 1.123 GB, free: 2.879 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.694e-05/0.9728, allocations: 28 kB / 1.123 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.9728, allocations: 12 kB / 1.123 GB, free: 2.84 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009679/0.9737, allocations: 0.5422 MB / 1.124 GB, free: 2.297 MB / 0.8731 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.004667/0.9784, allocations: 4.602 MB / 1.128 GB, free: 13.31 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007425/0.9792, allocations: 422.2 kB / 1.129 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004185/0.9796, allocations: 252.7 kB / 1.129 GB, free: 12.64 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003116/0.9799, allocations: 194.2 kB / 1.129 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005073/0.9805, allocations: 297.6 kB / 1.13 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.314e-06/0.9805, allocations: 0 / 1.13 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001464/0.9819, allocations: 0.6485 MB / 1.13 GB, free: 11.45 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.829e-05/0.982, allocations: 85.05 kB / 1.13 GB, free: 11.35 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/0.9836, allocations: 1.118 MB / 1.131 GB, free: 10.21 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 5.401e-05/0.9837, allocations: 33.7 kB / 1.131 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004597/0.9841, allocations: 496.1 kB / 1.132 GB, free: 9.684 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.9842, allocations: 114.4 kB / 1.132 GB, free: 9.57 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.369e-05/0.9843, allocations: 41.69 kB / 1.132 GB, free: 9.523 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9844, allocations: 337.9 kB / 1.132 GB, free: 9.188 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004022/0.9849, allocations: 212.7 kB / 1.133 GB, free: 8.977 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006357/0.9855, allocations: 0.5213 MB / 1.133 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009274/0.9864, allocations: 0.651 MB / 1.134 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.9864, allocations: 0 / 1.134 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001308/0.9878, allocations: 0.73 MB / 1.134 GB, free: 6.852 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.000225/0.988, allocations: 275.2 kB / 1.135 GB, free: 6.5 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.988, allocations: 7.984 kB / 1.135 GB, free: 6.492 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.988, allocations: 11.94 kB / 1.135 GB, free: 6.48 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.9885, allocations: 115.8 kB / 1.135 GB, free: 6.367 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.9885, allocations: 8.219 kB / 1.135 GB, free: 6.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007649/0.9893, allocations: 95.47 kB / 1.135 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.9894, allocations: 27.94 kB / 1.135 GB, free: 6.238 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.9894, allocations: 5.562 kB / 1.135 GB, free: 6.234 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009494/0.9903, allocations: 0.5399 MB / 1.135 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.9904, allocations: 4.656 kB / 1.135 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.885e-06/0.9904, allocations: 12 kB / 1.135 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.9907, allocations: 111.8 kB / 1.136 GB, free: 5.562 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.9908, allocations: 8 kB / 1.136 GB, free: 5.555 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007111/0.9915, allocations: 91.53 kB / 1.136 GB, free: 5.465 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.483e-05/0.9915, allocations: 20 kB / 1.136 GB, free: 5.445 MB / 0.8887 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.0005768/0.9921, allocations: 472.6 kB / 1.136 GB, free: 4.973 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.9923, allocations: 102.8 kB / 1.136 GB, free: 4.871 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009456/0.9932, allocations: 0.499 MB / 1.137 GB, free: 4.363 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.9933, allocations: 4 kB / 1.137 GB, free: 4.359 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.9933, allocations: 0 / 1.137 GB, free: 4.359 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.9933, allocations: 4 kB / 1.137 GB, free: 4.355 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.9955, allocations: 1.392 MB / 1.138 GB, free: 2.887 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.9955, allocations: 4 kB / 1.138 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.9958, allocations: 63.89 kB / 1.138 GB, free: 2.82 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.638e-06/0.9958, allocations: 7.938 kB / 1.138 GB, free: 2.812 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.9958, allocations: 8.219 kB / 1.138 GB, free: 2.805 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.9958, allocations: 8 kB / 1.138 GB, free: 2.797 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.9958, allocations: 3.938 kB / 1.138 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008882/0.9967, allocations: 0.6077 MB / 1.139 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003544/0.9971, allocations: 223.7 kB / 1.139 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.9972, allocations: 11.94 kB / 1.139 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/0.9977, allocations: 47.95 kB / 1.139 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.669e-05/0.9978, allocations: 31.91 kB / 1.139 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.9978, allocations: 15.98 kB / 1.139 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001053/0.9989, allocations: 0.7875 MB / 1.14 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9989, allocations: 0 / 1.14 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001208/1, allocations: 411.4 kB / 1.14 GB, free: 0.6055 MB / 0.8887 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.0004766/1.001, allocations: 172.1 kB / 1.14 GB, free: 448 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001496/1.002, allocations: 0.8355 MB / 1.141 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.002, allocations: 3.938 kB / 1.141 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003661/1.003, allocations: 200.8 kB / 1.141 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/1.005, allocations: 456.1 kB / 1.142 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003255/1.008, allocations: 2.099 MB / 1.144 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008431/1.009, allocations: 1.181 MB / 1.145 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002234/1.009, allocations: 79.42 kB / 1.145 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of SimCode: time 1.002e-06/1.009, allocations: 0 / 1.145 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of Templates: time 0.02632/1.036, allocations: 15.76 MB / 1.161 GB, free: 11.83 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches