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.00147/0.00147, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001803/0.001803, allocations: 192 kB / 18 MB, free: 5.102 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.484/1.484, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.302/0.302, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.001537/0.001537, allocations: 67.91 kB / 450.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1163, allocations: 59.16 MB / 0.4977 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow): time 0.2702/0.3865, allocations: 41.97 MB / 0.5387 GB, free: 6.906 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.3983, allocations: 9.881 MB / 0.5484 GB, free: 4.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005805/0.3989, allocations: 14.09 kB / 0.5484 GB, free: 4.312 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007799/0.3997, allocations: 227.1 kB / 0.5486 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007435/0.4005, allocations: 291.1 kB / 0.5489 GB, free: 4.039 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01622/0.4168, allocations: 4.729 MB / 0.5535 GB, free: 2.785 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.4181, allocations: 0.7513 MB / 0.5542 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004419/0.4186, allocations: 250.6 kB / 0.5545 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.419, allocations: 279 kB / 0.5547 GB, free: 2.457 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000373/0.4194, allocations: 286.5 kB / 0.555 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.467e-05/0.4194, allocations: 28.31 kB / 0.555 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01536/0.4348, allocations: 6.244 MB / 0.5611 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.435, allocations: 76.41 kB / 0.5612 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004377/0.4354, allocations: 230.2 kB / 0.5614 GB, free: 480 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.4467, allocations: 3.77 MB / 0.5651 GB, free: 14.06 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.4467, allocations: 0 / 0.5651 GB, free: 14.06 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4468, allocations: 1.188 kB / 0.5651 GB, free: 14.06 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.4468, allocations: 7.938 kB / 0.5651 GB, free: 14.05 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.003475/0.4502, allocations: 1.202 MB / 0.5663 GB, free: 13.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.4503, allocations: 12.98 kB / 0.5663 GB, free: 13.15 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003011/0.4506, allocations: 79.36 kB / 0.5664 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006114/0.4512, allocations: 390.2 kB / 0.5668 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.4513, allocations: 21.38 kB / 0.5668 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.4513, allocations: 32.09 kB / 0.5668 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008373/0.4522, allocations: 391.1 kB / 0.5672 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.4522, allocations: 1.344 kB / 0.5672 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.4522, allocations: 14.84 kB / 0.5672 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.4522, allocations: 7.438 kB / 0.5672 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006591/0.4529, allocations: 250.4 kB / 0.5674 GB, free: 12.34 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.002223/0.4551, allocations: 2.033 MB / 0.5694 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.4557, allocations: 154.5 kB / 0.5696 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.4559, allocations: 80.28 kB / 0.5696 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06412/0.52, allocations: 32.11 MB / 0.601 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.5201, allocations: 34.5 kB / 0.601 GB, free: 12.26 MB / 462.1 MB Notification: Performance of pre-optimization done (n=15): time 3.897e-06/0.5201, allocations: 0 / 0.601 GB, free: 12.26 MB / 462.1 MB Notification: Performance of matching and sorting (n=15): time 0.002569/0.5227, allocations: 0.5847 MB / 0.6016 GB, free: 11.64 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.5227, allocations: 51.41 kB / 0.6017 GB, free: 11.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.5232, allocations: 402 kB / 0.602 GB, free: 11.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.5232, allocations: 33.64 kB / 0.6021 GB, free: 11.14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.5234, allocations: 216.3 kB / 0.6023 GB, free: 10.92 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.061e-05/0.5234, allocations: 55.53 kB / 0.6023 GB, free: 10.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.056e-05/0.5235, allocations: 45.69 kB / 0.6024 GB, free: 10.82 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5237, allocations: 350.7 kB / 0.6027 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.5239, allocations: 80.75 kB / 0.6028 GB, free: 10.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.5241, allocations: 108.2 kB / 0.6029 GB, free: 10.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.5244, allocations: 192 kB / 0.6031 GB, free: 10.06 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.5244, allocations: 0 / 0.6031 GB, free: 10.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006056/0.5251, allocations: 306 kB / 0.6034 GB, free: 9.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.5251, allocations: 8 kB / 0.6034 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.5251, allocations: 128 / 0.6034 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002334/0.5274, allocations: 334.3 kB / 0.6037 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.5277, allocations: 51.89 kB / 0.6037 GB, free: 9.363 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008262/0.5285, allocations: 0.6421 MB / 0.6044 GB, free: 8.695 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.5289, allocations: 36.67 kB / 0.6044 GB, free: 8.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.5289, allocations: 11.98 kB / 0.6044 GB, free: 8.648 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002555/0.5292, allocations: 160.1 kB / 0.6046 GB, free: 8.488 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000184/0.5294, allocations: 123.6 kB / 0.6047 GB, free: 8.34 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003285/0.5297, allocations: 183.6 kB / 0.6049 GB, free: 8.133 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-06/0.5297, allocations: 0 / 0.6049 GB, free: 8.133 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization_lambda0): time 0.0007572/0.5305, allocations: 310 kB / 0.6052 GB, free: 7.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.5305, allocations: 4 kB / 0.6052 GB, free: 7.816 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.5305, allocations: 4.078 kB / 0.6052 GB, free: 7.812 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/0.5309, allocations: 80.88 kB / 0.6052 GB, free: 7.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/0.5312, allocations: 55.89 kB / 0.6053 GB, free: 7.676 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001754/0.5329, allocations: 1.573 MB / 0.6068 GB, free: 5.969 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003111/0.5333, allocations: 20.03 kB / 0.6068 GB, free: 5.949 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.5333, allocations: 12 kB / 0.6069 GB, free: 5.938 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.0001212/0.5334, allocations: 193 kB / 0.607 GB, free: 5.742 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.361e-05/0.5335, allocations: 44.8 kB / 0.6071 GB, free: 5.699 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.5348, allocations: 0.9141 MB / 0.608 GB, free: 4.781 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.5348, allocations: 11.98 kB / 0.608 GB, free: 4.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.5348, allocations: 0 / 0.608 GB, free: 4.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.5348, allocations: 3.984 kB / 0.608 GB, free: 4.766 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005907/0.5354, allocations: 0.5413 MB / 0.6085 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5354, allocations: 0 / 0.6085 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.088e-05/0.5355, allocations: 19.98 kB / 0.6085 GB, free: 4.156 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001486/0.537, allocations: 0.4954 MB / 0.609 GB, free: 3.656 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.5371, allocations: 11.94 kB / 0.609 GB, free: 3.645 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009581/0.538, allocations: 1.073 MB / 0.6101 GB, free: 2.547 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.538, allocations: 8.016 kB / 0.6101 GB, free: 2.539 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.5391, allocations: 0.7955 MB / 0.6109 GB, free: 1.723 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.5393, allocations: 135.2 kB / 0.611 GB, free: 1.574 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.597e-05/0.5393, allocations: 7.953 kB / 0.611 GB, free: 1.566 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.5395, allocations: 15.98 kB / 0.611 GB, free: 1.551 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.5396, allocations: 15.97 kB / 0.611 GB, free: 1.535 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.5396, allocations: 9.75 kB / 0.611 GB, free: 1.527 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003625/0.54, allocations: 342.8 kB / 0.6114 GB, free: 1.191 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.54, allocations: 0 / 0.6114 GB, free: 1.191 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003559/0.5436, allocations: 0.9514 MB / 0.6123 GB, free: 244 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.004032/0.5476, allocations: 0.9797 MB / 0.6133 GB, free: 15.26 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.5491, allocations: 481.7 kB / 0.6137 GB, free: 14.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5491, allocations: 0 / 0.6137 GB, free: 14.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003715/0.5495, allocations: 188 kB / 0.6139 GB, free: 14.59 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.5508, allocations: 227.5 kB / 0.6141 GB, free: 14.37 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.552, allocations: 0.8733 MB / 0.615 GB, free: 13.46 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.5524, allocations: 0.8493 MB / 0.6158 GB, free: 12.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.5527, allocations: 168 kB / 0.616 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.534e-05/0.5528, allocations: 31.44 kB / 0.616 GB, free: 12.41 MB / 478.1 MB Notification: Performance of SimCode: time 2.305e-06/0.5528, allocations: 0 / 0.616 GB, free: 12.41 MB / 478.1 MB Notification: Performance of Templates: time 0.04654/0.5993, allocations: 35.63 MB / 0.6508 GB, free: 8.727 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)