Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.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.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009499/0.00095, allocations: 93.97 kB / 16.3 MB, free: 5.996 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.0009071/0.0009072, allocations: 184.6 kB / 17.2 MB, free: 5.914 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.352/1.352, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.427/0.427, allocations: 48.77 MB / 320.4 MB, free: 3.824 MB / 254.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.0004779/0.000478, allocations: 12 kB / 391.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1074, allocations: 60.27 MB / 451.4 MB, free: 1.922 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.2061/0.3135, allocations: 39.07 MB / 490.5 MB, free: 25.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00937/0.323, allocations: 8.483 MB / 499 MB, free: 19.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005257/0.3235, allocations: 9.438 kB / 499 MB, free: 19.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008328/0.3244, allocations: 201.2 kB / 499.2 MB, free: 19.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006452/0.325, allocations: 273 kB / 499.4 MB, free: 19.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0114/0.3364, allocations: 3.631 MB / 0.4913 GB, free: 17.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001057/0.3375, allocations: 0.4976 MB / 0.4918 GB, free: 17.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004399/0.338, allocations: 188.5 kB / 0.4919 GB, free: 17.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003273/0.3383, allocations: 223.6 kB / 0.4921 GB, free: 17.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002827/0.3386, allocations: 215.4 kB / 0.4924 GB, free: 17.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.249e-05/0.3387, allocations: 22.81 kB / 0.4924 GB, free: 17.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01225/0.3509, allocations: 6.056 MB / 0.4983 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.3511, allocations: 58.66 kB / 0.4983 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.3513, allocations: 110.7 kB / 0.4985 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00496/0.3563, allocations: 2.466 MB / 0.5009 GB, free: 12.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3563, allocations: 0 / 0.5009 GB, free: 12.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3563, allocations: 0 / 0.5009 GB, free: 12.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.3563, allocations: 0 / 0.5009 GB, free: 12.93 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.003474/0.3598, allocations: 1.073 MB / 0.5019 GB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.3599, allocations: 9.438 kB / 0.5019 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003817/0.3602, allocations: 87.58 kB / 0.502 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.3607, allocations: 314 kB / 0.5023 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.3607, allocations: 21.62 kB / 0.5023 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.3608, allocations: 38 kB / 0.5024 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007762/0.3616, allocations: 421.5 kB / 0.5028 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.3616, allocations: 5 kB / 0.5028 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.484e-05/0.3616, allocations: 23.28 kB / 0.5028 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.3616, allocations: 7.719 kB / 0.5028 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006329/0.3623, allocations: 291.1 kB / 0.5031 GB, free: 11.32 MB / 382.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.001754/0.364, allocations: 2.212 MB / 0.5052 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006711/0.3647, allocations: 251.8 kB / 0.5055 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06269/0.4274, allocations: 32.29 MB / 0.537 GB, free: 6.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.4275, allocations: 31.75 kB / 0.537 GB, free: 6.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.635e-06/0.4275, allocations: 4 kB / 0.537 GB, free: 6.727 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004733/0.4323, allocations: 1.488 MB / 0.5385 GB, free: 5.188 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.4323, allocations: 59.34 kB / 0.5386 GB, free: 5.117 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003084/0.4326, allocations: 317.7 kB / 0.5389 GB, free: 4.797 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.4327, allocations: 29.7 kB / 0.5389 GB, free: 4.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.4328, allocations: 204.4 kB / 0.5391 GB, free: 4.559 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.4329, allocations: 122.2 kB / 0.5392 GB, free: 4.438 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.4329, allocations: 8 kB / 0.5392 GB, free: 4.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.4331, allocations: 346.8 kB / 0.5395 GB, free: 4.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.4333, allocations: 112 kB / 0.5396 GB, free: 3.973 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.4336, allocations: 164.8 kB / 0.5398 GB, free: 3.793 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.4338, allocations: 139.7 kB / 0.5399 GB, free: 3.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.4338, allocations: 4 kB / 0.5399 GB, free: 3.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008477/0.4347, allocations: 438.3 kB / 0.5404 GB, free: 3.215 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002403/0.4349, allocations: 0.5331 MB / 0.5409 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.4349, allocations: 3 kB / 0.5409 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004914/0.4354, allocations: 97.58 kB / 0.541 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.4358, allocations: 79.89 kB / 0.541 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008883/0.4367, allocations: 1.116 MB / 0.5421 GB, free: 1.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.4371, allocations: 36.19 kB / 0.5422 GB, free: 1.258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.4371, allocations: 16 kB / 0.5422 GB, free: 1.242 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.4371, allocations: 4 kB / 0.5422 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007174/0.4378, allocations: 357.2 kB / 0.5425 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-06/0.4379, allocations: 0 / 0.5425 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004197/0.4383, allocations: 97.78 kB / 0.5426 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003051/0.4386, allocations: 75.91 kB / 0.5427 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007663/0.4394, allocations: 1.116 MB / 0.5438 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.4397, allocations: 36.09 kB / 0.5438 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.4397, allocations: 12 kB / 0.5438 GB, free: 15.49 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002387/0.44, allocations: 240.9 kB / 0.5441 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.636e-05/0.44, allocations: 43.52 kB / 0.5441 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001588/0.4416, allocations: 1.172 MB / 0.5452 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.4417, allocations: 7.984 kB / 0.5453 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.4417, allocations: 7.938 kB / 0.5453 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4417, allocations: 0 / 0.5453 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008067/0.4425, allocations: 0.677 MB / 0.5459 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.4425, allocations: 0 / 0.5459 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/0.4428, allocations: 63.97 kB / 0.546 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005639/0.4434, allocations: 149.5 kB / 0.5461 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.4434, allocations: 8 kB / 0.5461 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007907/0.4442, allocations: 1.196 MB / 0.5473 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4442, allocations: 0 / 0.5473 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.4458, allocations: 1.209 MB / 0.5485 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.446, allocations: 160.3 kB / 0.5486 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.64e-05/0.446, allocations: 8 kB / 0.5486 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.4463, allocations: 27.97 kB / 0.5487 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.477e-05/0.4464, allocations: 23.91 kB / 0.5487 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.4464, allocations: 15.98 kB / 0.5487 GB, free: 10.33 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.4466, allocations: 223.2 kB / 0.5489 GB, free: 10.11 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.232e-06/0.4466, allocations: 4 kB / 0.5489 GB, free: 10.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003349/0.45, allocations: 0.9332 MB / 0.5498 GB, free: 9.176 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003945/0.4539, allocations: 0.9759 MB / 0.5508 GB, free: 8.195 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.4554, allocations: 0.6801 MB / 0.5515 GB, free: 7.516 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4554, allocations: 0 / 0.5515 GB, free: 7.516 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006008/0.456, allocations: 389 kB / 0.5518 GB, free: 7.137 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.4572, allocations: 206.2 kB / 0.552 GB, free: 6.945 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.4591, allocations: 1.538 MB / 0.5535 GB, free: 5.391 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.4595, allocations: 0.8636 MB / 0.5544 GB, free: 4.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003717/0.4599, allocations: 193.6 kB / 0.5545 GB, free: 4.312 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.501e-05/0.46, allocations: 35.44 kB / 0.5546 GB, free: 4.277 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.46, allocations: 4 kB / 0.5546 GB, free: 4.273 MB / 430.1 MB Notification: Performance of Templates: time 0.04749/0.5075, allocations: 35.69 MB / 0.5894 GB, free: 0.5781 MB / 462.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile Environment - environmentSimulation: (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1) Environment - environmentSimulation: