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: translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_10_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_10_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.006176/0.006176, 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.001495/0.001495, allocations: 191.9 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.335/1.335, allocations: 222.9 MB / 240.5 MB, free: 4.578 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.62/2.62, allocations: 437 MB / 0.7106 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 71.88 kB / 0.8692 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6346/0.6361, allocations: 151.6 MB / 1.017 GB, free: 2.902 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.163/0.7991, allocations: 159.4 MB / 1.173 GB, free: 2.938 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003075/0.8022, allocations: 1.776 MB / 1.175 GB, free: 1.16 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.8026, allocations: 11.94 kB / 1.175 GB, free: 1.148 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0006543/0.8033, allocations: 147.1 kB / 1.175 GB, free: 1.004 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.8045, allocations: 498 kB / 1.175 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009898/0.8055, allocations: 347 kB / 1.176 GB, free: 184 kB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.003195/0.8087, allocations: 3.475 MB / 1.179 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001039/0.8098, allocations: 0.7587 MB / 1.18 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.8116, allocations: 0.9103 MB / 1.181 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.8127, allocations: 0.7311 MB / 1.181 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.333e-05/0.8128, allocations: 36 kB / 1.181 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001695/0.8145, allocations: 0.8029 MB / 1.182 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003367/0.8148, allocations: 290.9 kB / 1.182 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0006524/0.8155, allocations: 0.5128 MB / 1.183 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.8166, allocations: 1.025 MB / 1.184 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.8166, allocations: 0 / 1.184 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of FrontEnd: time 8.21e-07/0.8166, allocations: 0 / 1.184 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.203e-05/0.8166, allocations: 0 / 1.184 GB, free: 7.609 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.002397/0.819, allocations: 1.447 MB / 1.185 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.8191, allocations: 12.03 kB / 1.185 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000806/0.8199, allocations: 182.5 kB / 1.186 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.8211, allocations: 0.8021 MB / 1.186 GB, free: 5.047 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.966e-05/0.8212, allocations: 45 kB / 1.186 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.112e-05/0.8213, allocations: 60 kB / 1.186 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.8224, allocations: 0.7985 MB / 1.187 GB, free: 4.07 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.8225, allocations: 4 kB / 1.187 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.8225, allocations: 20 kB / 1.187 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.8225, allocations: 16 kB / 1.187 GB, free: 4.031 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009043/0.8235, allocations: 0.5344 MB / 1.188 GB, free: 3.496 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.004493/0.828, allocations: 4.583 MB / 1.192 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007399/0.8287, allocations: 421.2 kB / 1.193 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.8291, allocations: 242.2 kB / 1.193 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003233/0.8294, allocations: 202.2 kB / 1.193 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005036/0.83, allocations: 293 kB / 1.193 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/0.83, allocations: 0 / 1.193 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=31): time 0.00143/0.8314, allocations: 0.6356 MB / 1.194 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.8315, allocations: 85.05 kB / 1.194 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.8328, allocations: 1.114 MB / 1.195 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.468e-05/0.8329, allocations: 33.92 kB / 1.195 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004027/0.8333, allocations: 0.4921 MB / 1.196 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.8334, allocations: 110.5 kB / 1.196 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.8336, allocations: 110 kB / 1.196 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.8337, allocations: 329.9 kB / 1.196 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.8341, allocations: 210.4 kB / 1.196 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006245/0.8347, allocations: 0.5213 MB / 1.197 GB, free: 9.504 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008669/0.8356, allocations: 0.6328 MB / 1.197 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.8356, allocations: 4 kB / 1.197 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001235/0.8368, allocations: 0.7243 MB / 1.198 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.8369, allocations: 41.81 kB / 1.198 GB, free: 8.004 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.8369, allocations: 4 kB / 1.198 GB, free: 8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.8369, allocations: 8 kB / 1.198 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004414/0.8374, allocations: 107.8 kB / 1.198 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.738e-05/0.8374, allocations: 15.92 kB / 1.198 GB, free: 7.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006802/0.8381, allocations: 91.47 kB / 1.198 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/0.8382, allocations: 27.94 kB / 1.198 GB, free: 7.754 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000684/0.8389, allocations: 0.4967 MB / 1.199 GB, free: 7.254 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005491/0.8394, allocations: 497.9 kB / 1.199 GB, free: 6.637 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007301/0.8402, allocations: 0.5453 MB / 1.2 GB, free: 6.012 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.519e-06/0.8402, allocations: 4 kB / 1.2 GB, free: 6.008 MB / 0.9512 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.001066/0.8412, allocations: 0.6537 MB / 1.201 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.773e-05/0.8413, allocations: 33.7 kB / 1.201 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.8413, allocations: 8 kB / 1.201 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.8413, allocations: 11.98 kB / 1.201 GB, free: 5.281 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.8417, allocations: 104.3 kB / 1.201 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.8417, allocations: 19.92 kB / 1.201 GB, free: 5.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006704/0.8424, allocations: 84.09 kB / 1.201 GB, free: 5.078 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.8424, allocations: 24 kB / 1.201 GB, free: 5.055 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.0002048/0.8427, allocations: 220 kB / 1.201 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.8428, allocations: 98.78 kB / 1.201 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009104/0.8437, allocations: 490.9 kB / 1.202 GB, free: 4.246 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.8437, allocations: 8 kB / 1.202 GB, free: 4.238 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.8437, allocations: 4 kB / 1.202 GB, free: 4.234 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.8437, allocations: 0 / 1.202 GB, free: 4.234 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.8459, allocations: 1.379 MB / 1.203 GB, free: 2.777 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.8459, allocations: 11.88 kB / 1.203 GB, free: 2.766 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.8461, allocations: 63.89 kB / 1.203 GB, free: 2.703 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.8461, allocations: 0 / 1.203 GB, free: 2.703 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.8462, allocations: 8 kB / 1.203 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.8462, allocations: 4 kB / 1.203 GB, free: 2.691 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.8462, allocations: 4 kB / 1.203 GB, free: 2.688 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.847, allocations: 0.6041 MB / 1.204 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/0.8473, allocations: 215.7 kB / 1.204 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.8475, allocations: 8 kB / 1.204 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.8479, allocations: 47.86 kB / 1.204 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.51e-05/0.848, allocations: 27.97 kB / 1.204 GB, free: 1.734 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/0.848, allocations: 15.98 kB / 1.204 GB, free: 1.719 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0009942/0.849, allocations: 0.7836 MB / 1.205 GB, free: 0.9258 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.849, allocations: 0 / 1.205 GB, free: 0.9258 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001204/0.8502, allocations: 403.5 kB / 1.205 GB, free: 0.5312 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.0004877/0.8507, allocations: 197.2 kB / 1.205 GB, free: 344 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001351/0.8521, allocations: 0.812 MB / 1.206 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.8521, allocations: 0 / 1.206 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003386/0.8525, allocations: 201.1 kB / 1.206 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.8544, allocations: 453.5 kB / 1.207 GB, free: 14.87 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.8572, allocations: 2.083 MB / 1.209 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006308/0.8578, allocations: 1.177 MB / 1.21 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.8581, allocations: 79.42 kB / 1.21 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of SimCode: time 5.61e-07/0.8581, allocations: 0 / 1.21 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of Templates: time 0.0246/0.8827, allocations: 15.89 MB / 1.226 GB, free: 11.66 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (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 & ./Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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