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.00702/0.00702, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001615/0.001615, allocations: 191.4 kB / 16.79 MB, free: 5.809 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.324/1.324, allocations: 222.9 MB / 240.5 MB, free: 4.547 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.34/2.34, allocations: 390.3 MB / 0.6649 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 64.09 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.727/0.7285, allocations: 140.4 MB / 0.9496 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1758/0.9044, allocations: 159.4 MB / 1.105 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003395/0.9078, allocations: 1.77 MB / 1.107 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005094/0.9084, allocations: 11.88 kB / 1.107 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007356/0.9092, allocations: 135.2 kB / 1.107 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.9108, allocations: 0.498 MB / 1.108 GB, free: 0 / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.912, allocations: 348.2 kB / 1.108 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003686/0.9157, allocations: 3.483 MB / 1.111 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001291/0.917, allocations: 0.7588 MB / 1.112 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.9189, allocations: 0.9103 MB / 1.113 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.9202, allocations: 0.735 MB / 1.114 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.9204, allocations: 40 kB / 1.114 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001779/0.9222, allocations: 0.8029 MB / 1.114 GB, free: 8.906 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004191/0.9227, allocations: 286.9 kB / 1.115 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000971/0.9236, allocations: 0.5128 MB / 1.115 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001402/0.9251, allocations: 1.017 MB / 1.116 GB, free: 7.09 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.9251, allocations: 7.984 kB / 1.116 GB, free: 7.082 MB / 0.8731 GB Notification: Performance of FrontEnd: time 8.62e-07/0.9251, allocations: 0 / 1.116 GB, free: 7.082 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.602e-05/0.9251, allocations: 0 / 1.116 GB, free: 7.082 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.002785/0.9279, allocations: 1.439 MB / 1.118 GB, free: 5.582 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.928, allocations: 8.031 kB / 1.118 GB, free: 5.574 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008677/0.9289, allocations: 190.4 kB / 1.118 GB, free: 5.387 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.9303, allocations: 0.8022 MB / 1.119 GB, free: 4.527 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.9303, allocations: 41 kB / 1.119 GB, free: 4.484 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.9304, allocations: 64 kB / 1.119 GB, free: 4.422 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.9317, allocations: 0.7926 MB / 1.12 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.9318, allocations: 0 / 1.12 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.719e-05/0.9318, allocations: 24 kB / 1.12 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.9319, allocations: 12 kB / 1.12 GB, free: 3.52 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.9329, allocations: 0.5383 MB / 1.12 GB, free: 2.98 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.004613/0.9375, allocations: 4.583 MB / 1.125 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007666/0.9383, allocations: 418.2 kB / 1.125 GB, free: 13.6 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.9387, allocations: 244.7 kB / 1.125 GB, free: 13.36 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003211/0.939, allocations: 194.2 kB / 1.125 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000509/0.9395, allocations: 297.6 kB / 1.126 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.9396, allocations: 0 / 1.126 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001482/0.941, allocations: 0.625 MB / 1.126 GB, free: 12.19 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.9411, allocations: 85.05 kB / 1.126 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.9426, allocations: 1.118 MB / 1.127 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 6.855e-05/0.9427, allocations: 41.69 kB / 1.127 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004226/0.9431, allocations: 488.1 kB / 1.128 GB, free: 10.42 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.9433, allocations: 110.5 kB / 1.128 GB, free: 10.31 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.9434, allocations: 114.1 kB / 1.128 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.9436, allocations: 333.9 kB / 1.128 GB, free: 9.859 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.944, allocations: 222.4 kB / 1.129 GB, free: 9.641 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006294/0.9446, allocations: 0.5135 MB / 1.129 GB, free: 8.996 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009081/0.9455, allocations: 0.6469 MB / 1.13 GB, free: 8.27 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.9455, allocations: 0 / 1.13 GB, free: 8.27 MB / 0.8887 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001303/0.9469, allocations: 0.7143 MB / 1.131 GB, free: 7.543 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.392e-05/0.9469, allocations: 33.7 kB / 1.131 GB, free: 7.504 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.9469, allocations: 4.281 kB / 1.131 GB, free: 7.5 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.947, allocations: 8 kB / 1.131 GB, free: 7.492 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/0.9474, allocations: 116.4 kB / 1.131 GB, free: 7.379 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.9474, allocations: 11.94 kB / 1.131 GB, free: 7.367 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000778/0.9482, allocations: 99.38 kB / 1.131 GB, free: 7.27 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.415e-05/0.9483, allocations: 35.91 kB / 1.131 GB, free: 7.234 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007363/0.949, allocations: 0.4889 MB / 1.131 GB, free: 6.738 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005675/0.9496, allocations: 489.9 kB / 1.132 GB, free: 6.125 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007884/0.9504, allocations: 0.5567 MB / 1.132 GB, free: 5.488 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.877e-06/0.9504, allocations: 0 / 1.132 GB, free: 5.488 MB / 0.8887 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001154/0.9516, allocations: 0.6342 MB / 1.133 GB, free: 4.84 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.634e-05/0.9516, allocations: 42.34 kB / 1.133 GB, free: 4.793 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.9516, allocations: 8 kB / 1.133 GB, free: 4.785 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.9517, allocations: 8 kB / 1.133 GB, free: 4.777 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.952, allocations: 103.8 kB / 1.133 GB, free: 4.676 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.9521, allocations: 11.94 kB / 1.133 GB, free: 4.664 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007584/0.9528, allocations: 88 kB / 1.133 GB, free: 4.578 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.9529, allocations: 20 kB / 1.133 GB, free: 4.559 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.0002191/0.9531, allocations: 220 kB / 1.133 GB, free: 4.336 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001934/0.9533, allocations: 98.78 kB / 1.133 GB, free: 4.238 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009828/0.9543, allocations: 499 kB / 1.134 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.9543, allocations: 4 kB / 1.134 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.9543, allocations: 0 / 1.134 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.9543, allocations: 4 kB / 1.134 GB, free: 3.734 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.9567, allocations: 1.388 MB / 1.135 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.9567, allocations: 3.938 kB / 1.135 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.957, allocations: 68.11 kB / 1.135 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-06/0.957, allocations: 4 kB / 1.135 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.957, allocations: 11.98 kB / 1.135 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.223e-06/0.957, allocations: 4 kB / 1.135 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.957, allocations: 3.938 kB / 1.135 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008942/0.9579, allocations: 0.5999 MB / 1.136 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/0.9583, allocations: 219.7 kB / 1.136 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.9585, allocations: 8 kB / 1.136 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000496/0.959, allocations: 47.89 kB / 1.136 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.971e-05/0.9591, allocations: 27.95 kB / 1.136 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.9591, allocations: 16 kB / 1.136 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001064/0.9602, allocations: 0.7875 MB / 1.137 GB, free: 420 kB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9602, allocations: 0 / 1.137 GB, free: 420 kB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001223/0.9614, allocations: 411.4 kB / 1.137 GB, free: 8 kB / 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.000468/0.9619, allocations: 185.5 kB / 1.138 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001485/0.9634, allocations: 0.8102 MB / 1.138 GB, free: 15 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.9634, allocations: 0.625 kB / 1.138 GB, free: 15 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.9638, allocations: 207.5 kB / 1.139 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.9659, allocations: 451 kB / 1.139 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.9692, allocations: 2.084 MB / 1.141 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008559/0.9701, allocations: 1.181 MB / 1.142 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/0.9703, allocations: 75.42 kB / 1.142 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of SimCode: time 6.11e-07/0.9703, allocations: 3.938 kB / 1.142 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of Templates: time 0.02523/0.9956, allocations: 15.91 MB / 1.158 GB, free: 11.13 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