Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prv.port_a.p|prv.port_b.p|prv.dp|speEntIn.h_out|speEntOut.h_out|prv.m_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing") translateModel(Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prv.port_a.p|prv.port_b.p|prv.dp|speEntIn.h_out|speEntOut.h_out|prv.m_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001648/0.001648, allocations: 197.2 kB / 16.14 MB, free: 6.016 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.437/1.437, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.985/2.985, allocations: 482.3 MB / 0.7541 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 65.22 kB / 0.923 GB, free: 29.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3597, allocations: 162.2 MB / 1.081 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing): time 0.1831/0.5428, allocations: 144.1 MB / 1.222 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02017/0.563, allocations: 15.34 MB / 1.237 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008433/0.5639, allocations: 15.88 kB / 1.237 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.000866/0.5648, allocations: 222.7 kB / 1.237 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005315/0.5702, allocations: 1.835 MB / 1.239 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.5717, allocations: 0.4887 MB / 1.24 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002116/0.5738, allocations: 1.554 MB / 1.241 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006568/0.5745, allocations: 365.3 kB / 1.242 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007457/0.5753, allocations: 390 kB / 1.242 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000605/0.5759, allocations: 410.4 kB / 1.242 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.576, allocations: 24 kB / 1.242 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005/0.581, allocations: 2.594 MB / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.5812, allocations: 103.5 kB / 1.245 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003699/0.5815, allocations: 242.7 kB / 1.245 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003621/0.5852, allocations: 1.867 MB / 1.247 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.5852, allocations: 4 kB / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5852, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.5852, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001997/0.5872, allocations: 0.923 MB / 1.248 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.5873, allocations: 11.97 kB / 1.248 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.5884, allocations: 143.3 kB / 1.248 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009152/0.5893, allocations: 469.1 kB / 1.249 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.5894, allocations: 28.59 kB / 1.249 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.601e-05/0.5895, allocations: 32 kB / 1.249 GB, free: 2.023 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008687/0.5903, allocations: 426.1 kB / 1.249 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.5904, allocations: 0 / 1.249 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.5904, allocations: 19.94 kB / 1.249 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.5904, allocations: 8 kB / 1.249 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000771/0.5912, allocations: 314.3 kB / 1.249 GB, free: 1.242 MB / 0.9981 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.6708/1.262, allocations: 2.579 MB / 1.252 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006296/1.263, allocations: 336.5 kB / 1.252 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/1.263, allocations: 149.2 kB / 1.252 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008027/1.264, allocations: 424.7 kB / 1.253 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/1.264, allocations: 37.67 kB / 1.253 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000302/1.264, allocations: 24.05 kB / 1.253 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=19): time 2.695e-06/1.264, allocations: 0 / 1.253 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.001299/1.265, allocations: 397.1 kB / 1.253 GB, free: 173 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/1.266, allocations: 109.8 kB / 1.253 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004494/1.266, allocations: 362 kB / 1.254 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/1.266, allocations: 36.36 kB / 1.254 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/1.266, allocations: 252.6 kB / 1.254 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.605e-05/1.266, allocations: 64.25 kB / 1.254 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/1.266, allocations: 59.94 kB / 1.254 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.925e-05/1.266, allocations: 347.4 kB / 1.254 GB, free: 172 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/1.267, allocations: 108.3 kB / 1.254 GB, free: 172 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/1.267, allocations: 217.2 kB / 1.255 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005892/1.268, allocations: 315.8 kB / 1.255 GB, free: 171.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/1.268, allocations: 4.875 kB / 1.255 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009626/1.269, allocations: 360.2 kB / 1.255 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/1.269, allocations: 9.875 kB / 1.255 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/1.269, allocations: 3.438 kB / 1.255 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.707e-05/1.269, allocations: 5.078 kB / 1.255 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000515/1.269, allocations: 84.3 kB / 1.255 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000285/1.27, allocations: 0.5969 MB / 1.256 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/1.27, allocations: 40.45 kB / 1.256 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.109e-05/1.27, allocations: 18.23 kB / 1.256 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003752/1.27, allocations: 218.5 kB / 1.256 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003545/1.271, allocations: 216.5 kB / 1.256 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005749/1.271, allocations: 307.8 kB / 1.257 GB, free: 170.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.867e-06/1.271, allocations: 5.281 kB / 1.257 GB, free: 170.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=28) (initialization_lambda0): time 0.0009495/1.272, allocations: 361 kB / 1.257 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.272, allocations: 8.312 kB / 1.257 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/1.272, allocations: 3.75 kB / 1.257 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.795e-06/1.272, allocations: 5.312 kB / 1.257 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002766/1.273, allocations: 64.38 kB / 1.257 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/1.273, allocations: 9.422 kB / 1.257 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003209/1.273, allocations: 38.7 kB / 1.257 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/1.273, allocations: 21.58 kB / 1.257 GB, free: 170.2 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001185/1.273, allocations: 199.8 kB / 1.257 GB, free: 170 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000256/1.273, allocations: 43.72 kB / 1.257 GB, free: 170 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/1.274, allocations: 438.8 kB / 1.258 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/1.274, allocations: 4.234 kB / 1.258 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/1.274, allocations: 1.125 kB / 1.258 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/1.274, allocations: 6.531 kB / 1.258 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/1.276, allocations: 1.047 MB / 1.259 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/1.276, allocations: 2.047 kB / 1.259 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/1.276, allocations: 76.06 kB / 1.259 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/1.277, allocations: 2.984 kB / 1.259 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/1.277, allocations: 7.969 kB / 1.259 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002245/1.277, allocations: 0.5841 MB / 1.26 GB, free: 168.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.277, allocations: 3.828 kB / 1.26 GB, free: 168.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008927/1.278, allocations: 447.2 kB / 1.26 GB, free: 168.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/1.278, allocations: 148.3 kB / 1.26 GB, free: 168.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.279e-05/1.278, allocations: 10.25 kB / 1.26 GB, free: 168.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/1.278, allocations: 32.73 kB / 1.26 GB, free: 168.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/1.278, allocations: 25.25 kB / 1.26 GB, free: 168.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/1.278, allocations: 12.78 kB / 1.26 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000367/1.279, allocations: 268.7 kB / 1.26 GB, free: 168 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.503e-06/1.279, allocations: 0 / 1.26 GB, free: 168 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00188/1.281, allocations: 454 kB / 1.261 GB, free: 168 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001846/1.282, allocations: 438.5 kB / 1.261 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001521/1.284, allocations: 455 kB / 1.262 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/1.284, allocations: 0 / 1.262 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004773/1.285, allocations: 156.2 kB / 1.262 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/1.286, allocations: 173.6 kB / 1.262 GB, free: 167.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/1.288, allocations: 0.8891 MB / 1.263 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004744/1.288, allocations: 0.8213 MB / 1.264 GB, free: 166.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005474/1.289, allocations: 122.2 kB / 1.264 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/1.289, allocations: 46.2 kB / 1.264 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of SimCode: time 8.12e-07/1.289, allocations: 3.969 kB / 1.264 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.03068/1.32, allocations: 13.75 MB / 1.277 GB, free: 164.1 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing.makefile (rm -f Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing.sim & ./Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Loads.Steam.BaseClasses.Examples.ValveSelfActing.pipe 2>&1)