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.0007948/0.0007948, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008527/0.0008527, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.3 MB / 240 MB, free: 5.406 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.375/2.375, allocations: 390.9 MB / 0.666 GB, free: 2.516 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003204/0.0003204, allocations: 12 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7201/0.7205, allocations: 142.4 MB / 0.9544 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.1715/0.892, allocations: 146.7 MB / 1.098 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003105/0.8951, allocations: 1.641 MB / 1.099 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003908/0.8956, allocations: 7.938 kB / 1.099 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005671/0.8961, allocations: 115.2 kB / 1.099 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.8975, allocations: 394.1 kB / 1.1 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.8988, allocations: 331.5 kB / 1.1 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003072/0.9019, allocations: 2.987 MB / 1.103 GB, free: 6.922 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.903, allocations: 0.6837 MB / 1.104 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.9047, allocations: 0.8675 MB / 1.105 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.9058, allocations: 0.7118 MB / 1.105 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.9059, allocations: 32 kB / 1.105 GB, free: 4.609 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001352/0.9073, allocations: 0.5535 MB / 1.106 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003728/0.9077, allocations: 274.9 kB / 1.106 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004102/0.9081, allocations: 233.1 kB / 1.106 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001291/0.9094, allocations: 1.025 MB / 1.107 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.9094, allocations: 0 / 1.107 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.624e-06/0.9094, allocations: 0 / 1.107 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.291e-05/0.9094, allocations: 4 kB / 1.107 GB, free: 2.52 MB / 0.8575 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.002138/0.9116, allocations: 1.299 MB / 1.109 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.9116, allocations: 12.03 kB / 1.109 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007058/0.9123, allocations: 186.5 kB / 1.109 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.9137, allocations: 0.7923 MB / 1.11 GB, free: 116 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.9137, allocations: 52.98 kB / 1.11 GB, free: 64 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.204e-05/0.9138, allocations: 60 kB / 1.11 GB, free: 4 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.9151, allocations: 0.7941 MB / 1.11 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.9151, allocations: 7.938 kB / 1.11 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.257e-05/0.9152, allocations: 20 kB / 1.11 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.9152, allocations: 16 kB / 1.111 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008592/0.9161, allocations: 0.5383 MB / 1.111 GB, free: 14.55 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.00405/0.9201, allocations: 4.602 MB / 1.116 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007024/0.9209, allocations: 434.2 kB / 1.116 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.9212, allocations: 243.6 kB / 1.116 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002924/0.9215, allocations: 194.2 kB / 1.116 GB, free: 8.672 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004971/0.922, allocations: 305.6 kB / 1.117 GB, free: 8.355 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=31): time 1.823e-06/0.9221, allocations: 0 / 1.117 GB, free: 8.355 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31): time 0.00132/0.9234, allocations: 0.6484 MB / 1.117 GB, free: 7.703 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.9234, allocations: 81.11 kB / 1.117 GB, free: 7.605 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.9248, allocations: 1.114 MB / 1.118 GB, free: 6.473 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.9248, allocations: 33.7 kB / 1.118 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004298/0.9253, allocations: 0.4961 MB / 1.119 GB, free: 5.93 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.185e-05/0.9254, allocations: 106.5 kB / 1.119 GB, free: 5.824 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.9254, allocations: 12.22 kB / 1.119 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.9255, allocations: 326 kB / 1.119 GB, free: 5.488 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003454/0.9259, allocations: 188.7 kB / 1.12 GB, free: 5.301 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005729/0.9265, allocations: 0.4979 MB / 1.12 GB, free: 4.672 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.9269, allocations: 298.4 kB / 1.12 GB, free: 4.375 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.9269, allocations: 4 kB / 1.12 GB, free: 4.371 MB / 0.8731 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00106/0.928, allocations: 0.6834 MB / 1.121 GB, free: 3.676 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001948/0.9282, allocations: 278.5 kB / 1.121 GB, free: 3.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.9282, allocations: 4 kB / 1.121 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.9282, allocations: 16.28 kB / 1.121 GB, free: 3.301 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.9287, allocations: 107.9 kB / 1.121 GB, free: 3.195 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.9287, allocations: 11.94 kB / 1.121 GB, free: 3.184 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006709/0.9294, allocations: 107.4 kB / 1.122 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.585e-05/0.9294, allocations: 27.98 kB / 1.122 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.605e-06/0.9294, allocations: 5.562 kB / 1.122 GB, free: 3.047 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008528/0.9303, allocations: 0.5402 MB / 1.122 GB, free: 2.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.9303, allocations: 8 kB / 1.122 GB, free: 2.492 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-06/0.9303, allocations: 8 kB / 1.122 GB, free: 2.484 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003381/0.9307, allocations: 107.8 kB / 1.122 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.9307, allocations: 11.95 kB / 1.122 GB, free: 2.367 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005811/0.9313, allocations: 96.67 kB / 1.122 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.9313, allocations: 24 kB / 1.122 GB, free: 2.25 MB / 0.8731 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 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005174/0.9318, allocations: 472.6 kB / 1.123 GB, free: 1.777 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.932, allocations: 98.78 kB / 1.123 GB, free: 1.68 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008851/0.9329, allocations: 0.5027 MB / 1.123 GB, free: 1.172 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.096e-06/0.9329, allocations: 7.953 kB / 1.123 GB, free: 1.164 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.9329, allocations: 0 / 1.123 GB, free: 1.164 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.9329, allocations: 3.984 kB / 1.123 GB, free: 1.16 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001915/0.9348, allocations: 1.384 MB / 1.125 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.9348, allocations: 4.031 kB / 1.125 GB, free: 15.69 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.9351, allocations: 71.89 kB / 1.125 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.9351, allocations: 0 / 1.125 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.9351, allocations: 12 kB / 1.125 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.9351, allocations: 3.984 kB / 1.125 GB, free: 15.61 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.9351, allocations: 4 kB / 1.125 GB, free: 15.6 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007534/0.9359, allocations: 0.6061 MB / 1.125 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/0.9362, allocations: 219.8 kB / 1.126 GB, free: 14.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.9363, allocations: 11.98 kB / 1.126 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/0.9367, allocations: 59.73 kB / 1.126 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.443e-05/0.9368, allocations: 35.89 kB / 1.126 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.9369, allocations: 12 kB / 1.126 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009724/0.9378, allocations: 0.7875 MB / 1.126 GB, free: 13.81 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9378, allocations: 0 / 1.126 GB, free: 13.81 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001157/0.939, allocations: 407.4 kB / 1.127 GB, free: 13.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004526/0.9395, allocations: 183.3 kB / 1.127 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00135/0.9408, allocations: 0.8063 MB / 1.128 GB, free: 12.4 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.9409, allocations: 8.188 kB / 1.128 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.000354/0.9412, allocations: 199.7 kB / 1.128 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.9432, allocations: 461.9 kB / 1.128 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.946, allocations: 1.958 MB / 1.13 GB, free: 9.734 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006824/0.9467, allocations: 1.181 MB / 1.132 GB, free: 8.523 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001119/0.9478, allocations: 423.5 kB / 1.132 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.948, allocations: 75.42 kB / 1.132 GB, free: 8.031 MB / 0.8887 GB Notification: Performance of SimCode: time 9.02e-07/0.948, allocations: 0 / 1.132 GB, free: 8.031 MB / 0.8887 GB Notification: Performance of Templates: time 0.02721/0.9752, allocations: 15.99 MB / 1.148 GB, free: 8.242 MB / 0.9044 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/jenkins/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