Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ThermoPower.Test.WaterComponents.ValveZeroFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001096, allocations: 114.4 kB / 17.06 MB, free: 5.965 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.001106/0.001106, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.288/1.288, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2779/0.2779, allocations: 48.84 MB / 320.1 MB, free: 10.99 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 63.89 kB / 450.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1221, allocations: 59.17 MB / 0.4977 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow): time 0.3017/0.4239, allocations: 41.96 MB / 0.5387 GB, free: 6.895 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.4362, allocations: 9.876 MB / 0.5484 GB, free: 4.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.4367, allocations: 23.09 kB / 0.5484 GB, free: 4.305 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000771/0.4375, allocations: 227.5 kB / 0.5486 GB, free: 4.195 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005954/0.4382, allocations: 293.7 kB / 0.5489 GB, free: 4.031 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01656/0.4547, allocations: 4.722 MB / 0.5535 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.4562, allocations: 0.7514 MB / 0.5542 GB, free: 2.559 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004076/0.4566, allocations: 258.3 kB / 0.5545 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003845/0.457, allocations: 279.7 kB / 0.5547 GB, free: 2.449 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003502/0.4573, allocations: 287.7 kB / 0.555 GB, free: 2.367 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.201e-05/0.4574, allocations: 28.75 kB / 0.555 GB, free: 2.367 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01384/0.4712, allocations: 6.24 MB / 0.5611 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.4714, allocations: 79.91 kB / 0.5612 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003451/0.4718, allocations: 240.8 kB / 0.5614 GB, free: 432 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009059/0.4808, allocations: 3.758 MB / 0.5651 GB, free: 14.03 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4809, allocations: 0 / 0.5651 GB, free: 14.03 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4809, allocations: 0 / 0.5651 GB, free: 14.03 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.4809, allocations: 1.438 kB / 0.5651 GB, free: 14.03 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.003614/0.4845, allocations: 1.177 MB / 0.5663 GB, free: 13.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.4846, allocations: 12.98 kB / 0.5663 GB, free: 13.15 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002947/0.4849, allocations: 75.36 kB / 0.5664 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005994/0.4855, allocations: 386.6 kB / 0.5667 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.4855, allocations: 19.97 kB / 0.5667 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.346e-05/0.4856, allocations: 32.06 kB / 0.5668 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008388/0.4864, allocations: 391.1 kB / 0.5671 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.4864, allocations: 1.156 kB / 0.5671 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.4865, allocations: 10.28 kB / 0.5672 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.4865, allocations: 7.75 kB / 0.5672 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006735/0.4872, allocations: 260.4 kB / 0.5674 GB, free: 12.35 MB / 430.1 MB 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.002834/0.49, allocations: 2.031 MB / 0.5694 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005387/0.4906, allocations: 147.8 kB / 0.5695 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.4908, allocations: 76.05 kB / 0.5696 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06683/0.5576, allocations: 32.1 MB / 0.601 GB, free: 12.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/0.5577, allocations: 42.5 kB / 0.601 GB, free: 12.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=15): time 5.23e-06/0.5577, allocations: 0 / 0.601 GB, free: 12.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=15): time 0.002637/0.5604, allocations: 0.577 MB / 0.6016 GB, free: 11.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.5605, allocations: 55.41 kB / 0.6016 GB, free: 11.59 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.5609, allocations: 401.9 kB / 0.602 GB, free: 11.19 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.5609, allocations: 29.64 kB / 0.602 GB, free: 11.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.5611, allocations: 216.1 kB / 0.6022 GB, free: 10.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.486e-05/0.5612, allocations: 55.28 kB / 0.6023 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-05/0.5612, allocations: 49.59 kB / 0.6023 GB, free: 10.83 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.5614, allocations: 354.7 kB / 0.6027 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.5616, allocations: 76.81 kB / 0.6027 GB, free: 10.39 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.5618, allocations: 104.2 kB / 0.6028 GB, free: 10.28 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003862/0.5622, allocations: 188.1 kB / 0.603 GB, free: 10.08 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.5622, allocations: 0.8125 kB / 0.603 GB, free: 10.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006644/0.5629, allocations: 305.8 kB / 0.6033 GB, free: 9.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.5629, allocations: 4 kB / 0.6033 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.5629, allocations: 4 kB / 0.6033 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002514/0.5655, allocations: 324.6 kB / 0.6036 GB, free: 9.441 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/0.5657, allocations: 55.89 kB / 0.6037 GB, free: 9.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008549/0.5666, allocations: 0.6499 MB / 0.6043 GB, free: 8.711 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.5669, allocations: 23.73 kB / 0.6043 GB, free: 8.688 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.848e-05/0.567, allocations: 12.88 kB / 0.6044 GB, free: 8.676 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002573/0.5672, allocations: 164.1 kB / 0.6045 GB, free: 8.512 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002121/0.5675, allocations: 123.6 kB / 0.6046 GB, free: 8.363 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003351/0.5678, allocations: 187.6 kB / 0.6048 GB, free: 8.152 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.362e-06/0.5678, allocations: 0 / 0.6048 GB, free: 8.152 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization_lambda0): time 0.0007716/0.5686, allocations: 301.7 kB / 0.6051 GB, free: 7.848 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/0.5686, allocations: 8.25 kB / 0.6051 GB, free: 7.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.5686, allocations: 4 kB / 0.6051 GB, free: 7.836 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003467/0.569, allocations: 72.77 kB / 0.6052 GB, free: 7.762 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.5693, allocations: 55.95 kB / 0.6052 GB, free: 7.707 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.5709, allocations: 1.581 MB / 0.6068 GB, free: 5.992 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.5712, allocations: 11.91 kB / 0.6068 GB, free: 5.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.5712, allocations: 15.98 kB / 0.6068 GB, free: 5.965 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.5714, allocations: 189.1 kB / 0.607 GB, free: 5.773 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.5715, allocations: 39.53 kB / 0.607 GB, free: 5.734 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.5727, allocations: 0.9101 MB / 0.6079 GB, free: 4.82 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.5728, allocations: 11.98 kB / 0.6079 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.5728, allocations: 0 / 0.6079 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.5728, allocations: 0 / 0.6079 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000578/0.5734, allocations: 0.5489 MB / 0.6085 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.5734, allocations: 0 / 0.6085 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.5735, allocations: 23.98 kB / 0.6085 GB, free: 4.188 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.575, allocations: 0.4915 MB / 0.609 GB, free: 3.691 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.575, allocations: 7.938 kB / 0.609 GB, free: 3.684 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009552/0.576, allocations: 1.081 MB / 0.61 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.576, allocations: 0 / 0.61 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.577, allocations: 0.7991 MB / 0.6108 GB, free: 1.758 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.5772, allocations: 128.4 kB / 0.6109 GB, free: 1.613 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.553e-05/0.5772, allocations: 11.91 kB / 0.6109 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.5774, allocations: 13.42 kB / 0.6109 GB, free: 1.59 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.5775, allocations: 11.98 kB / 0.611 GB, free: 1.578 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.5775, allocations: 11.92 kB / 0.611 GB, free: 1.566 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000355/0.5779, allocations: 338.8 kB / 0.6113 GB, free: 1.234 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5779, allocations: 0 / 0.6113 GB, free: 1.234 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003321/0.5812, allocations: 0.9485 MB / 0.6122 GB, free: 292 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003787/0.585, allocations: 0.9616 MB / 0.6132 GB, free: 15.33 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.5865, allocations: 485.4 kB / 0.6136 GB, free: 14.84 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5865, allocations: 0.6875 kB / 0.6136 GB, free: 14.84 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004851/0.587, allocations: 200 kB / 0.6138 GB, free: 14.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.5884, allocations: 221.9 kB / 0.614 GB, free: 14.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.5896, allocations: 0.8588 MB / 0.6149 GB, free: 13.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.59, allocations: 0.8475 MB / 0.6157 GB, free: 12.67 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002962/0.5903, allocations: 174.6 kB / 0.6159 GB, free: 12.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.625e-05/0.5904, allocations: 31.44 kB / 0.6159 GB, free: 12.48 MB / 478.1 MB Notification: Performance of SimCode: time 1.693e-06/0.5904, allocations: 3.938 kB / 0.6159 GB, free: 12.47 MB / 478.1 MB Notification: Performance of Templates: time 0.04925/0.6396, allocations: 35.85 MB / 0.6509 GB, free: 8.582 MB / 0.4981 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe 2>&1)