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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007741/0.0007741, allocations: 89.52 kB / 16.65 MB, free: 6.586 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.0008457/0.0008457, allocations: 179.7 kB / 17.56 MB, free: 6.203 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.061/1.061, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2078/0.2078, allocations: 48.77 MB / 320.8 MB, free: 11.12 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.0004405/0.0004405, allocations: 19.11 kB / 391.9 MB, free: 50.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07032/0.07077, allocations: 60.26 MB / 452.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.03511/0.1059, allocations: 46.44 MB / 498.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009964/0.1159, allocations: 10.4 MB / 0.4971 GB, free: 64 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.1161, allocations: 11.94 kB / 0.4971 GB, free: 52 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005196/0.1167, allocations: 207 kB / 0.4973 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000442/0.1171, allocations: 286.3 kB / 0.4976 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007452/0.1246, allocations: 3.746 MB / 0.5012 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008183/0.1254, allocations: 1.075 MB / 0.5023 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002883/0.1257, allocations: 201.8 kB / 0.5025 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000258/0.126, allocations: 262.8 kB / 0.5027 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002756/0.1263, allocations: 286.7 kB / 0.503 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.1263, allocations: 16 kB / 0.503 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007572/0.1339, allocations: 6.142 MB / 0.509 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.293e-05/0.1339, allocations: 75.67 kB / 0.5091 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.1341, allocations: 240.6 kB / 0.5093 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003528/0.1377, allocations: 3.715 MB / 0.5129 GB, free: 15.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1377, allocations: 0 / 0.5129 GB, free: 15.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1377, allocations: 0 / 0.5129 GB, free: 15.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1377, allocations: 3.938 kB / 0.5129 GB, free: 15.78 MB / 414.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.001947/0.1396, allocations: 1.068 MB / 0.514 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.1397, allocations: 12.03 kB / 0.514 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.053e-05/0.1397, allocations: 66.72 kB / 0.514 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003171/0.1401, allocations: 88.33 kB / 0.5141 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.1404, allocations: 323.3 kB / 0.5144 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.1404, allocations: 25.03 kB / 0.5145 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.1405, allocations: 40.03 kB / 0.5145 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.1412, allocations: 430.1 kB / 0.5149 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1412, allocations: 3.938 kB / 0.5149 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.693e-05/0.1412, allocations: 12 kB / 0.5149 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.1413, allocations: 8 kB / 0.5149 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005907/0.1418, allocations: 298.4 kB / 0.5152 GB, free: 13.3 MB / 414.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.001644/0.1435, allocations: 2.204 MB / 0.5174 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.1441, allocations: 262.7 kB / 0.5176 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.1443, allocations: 104.8 kB / 0.5177 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.19/0.3343, allocations: 32.28 MB / 0.5492 GB, free: 70.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.3343, allocations: 36.03 kB / 0.5493 GB, free: 69.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.874e-06/0.3343, allocations: 0 / 0.5493 GB, free: 69.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00401/0.3383, allocations: 1.474 MB / 0.5507 GB, free: 69.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.779e-05/0.3384, allocations: 57.84 kB / 0.5508 GB, free: 69.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.3387, allocations: 324.9 kB / 0.5511 GB, free: 69.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.3387, allocations: 32.45 kB / 0.5511 GB, free: 69.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3388, allocations: 202.3 kB / 0.5513 GB, free: 69.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.3389, allocations: 120.3 kB / 0.5514 GB, free: 69.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.3389, allocations: 36.48 kB / 0.5515 GB, free: 69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.259e-05/0.339, allocations: 350.3 kB / 0.5518 GB, free: 68.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3392, allocations: 124.9 kB / 0.5519 GB, free: 68.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.3394, allocations: 167.8 kB / 0.5521 GB, free: 68.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004526/0.3399, allocations: 307.1 kB / 0.5524 GB, free: 68.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.3399, allocations: 0 / 0.5524 GB, free: 68.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008168/0.3407, allocations: 449.8 kB / 0.5528 GB, free: 68.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/0.3408, allocations: 126.6 kB / 0.5529 GB, free: 68.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3408, allocations: 2.938 kB / 0.5529 GB, free: 68.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004406/0.3412, allocations: 90.16 kB / 0.553 GB, free: 68.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.3415, allocations: 79.31 kB / 0.5531 GB, free: 68.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005323/0.3421, allocations: 1.117 MB / 0.5542 GB, free: 67.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.3423, allocations: 38.22 kB / 0.5542 GB, free: 67.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.3424, allocations: 11.47 kB / 0.5542 GB, free: 67.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-06/0.3424, allocations: 12.89 kB / 0.5542 GB, free: 67.13 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006555/0.3431, allocations: 371.1 kB / 0.5546 GB, free: 67.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.3431, allocations: 1.406 kB / 0.5546 GB, free: 67.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003812/0.3435, allocations: 97.31 kB / 0.5547 GB, free: 66.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.3437, allocations: 72.14 kB / 0.5547 GB, free: 66.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004847/0.3442, allocations: 1.118 MB / 0.5558 GB, free: 65.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.3445, allocations: 39.53 kB / 0.5559 GB, free: 65.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.3445, allocations: 9.906 kB / 0.5559 GB, free: 65.83 MB / 414.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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.3446, allocations: 235 kB / 0.5561 GB, free: 65.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-05/0.3447, allocations: 44.58 kB / 0.5562 GB, free: 65.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.346, allocations: 1.178 MB / 0.5573 GB, free: 64.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.3461, allocations: 10.41 kB / 0.5573 GB, free: 64.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3461, allocations: 0.5312 kB / 0.5573 GB, free: 64.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3461, allocations: 7.984 kB / 0.5573 GB, free: 64.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006177/0.3467, allocations: 0.6767 MB / 0.558 GB, free: 64.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3467, allocations: 0.5625 kB / 0.558 GB, free: 64.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.347, allocations: 72.48 kB / 0.558 GB, free: 64.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005034/0.3475, allocations: 143.3 kB / 0.5582 GB, free: 64.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.3475, allocations: 8 kB / 0.5582 GB, free: 64.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005064/0.3481, allocations: 1.194 MB / 0.5594 GB, free: 63.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3481, allocations: 1.969 kB / 0.5594 GB, free: 63.13 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.3493, allocations: 1.22 MB / 0.5606 GB, free: 62.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3494, allocations: 162.7 kB / 0.5607 GB, free: 62.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.3495, allocations: 5.938 kB / 0.5607 GB, free: 62.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.3497, allocations: 24.92 kB / 0.5607 GB, free: 62.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.038e-05/0.3498, allocations: 23.84 kB / 0.5608 GB, free: 62.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.3498, allocations: 16.55 kB / 0.5608 GB, free: 62.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.35, allocations: 224.7 kB / 0.561 GB, free: 62.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.35, allocations: 0 / 0.561 GB, free: 62.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001749/0.3517, allocations: 0.9265 MB / 0.5619 GB, free: 61.97 MB / 414.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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004165/0.3559, allocations: 2.634 MB / 0.5645 GB, free: 60.56 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.357, allocations: 0.6879 MB / 0.5651 GB, free: 60.26 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3571, allocations: 0 / 0.5651 GB, free: 60.26 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.3575, allocations: 387.3 kB / 0.5655 GB, free: 60.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.3586, allocations: 207.1 kB / 0.5657 GB, free: 59.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004559/0.3632, allocations: 4.666 MB / 0.5703 GB, free: 55.58 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.3634, allocations: 0.8498 MB / 0.5711 GB, free: 54.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003105/0.3637, allocations: 197.1 kB / 0.5713 GB, free: 54.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.3638, allocations: 179.3 kB / 0.5715 GB, free: 54.34 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3638, allocations: 0 / 0.5715 GB, free: 54.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.614/5.978, allocations: 40.63 MB / 0.6111 GB, free: 13.65 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/5.978, allocations: 217.2 kB / 0.6113 GB, free: 13.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.34/10.32, allocations: 0 / 0.6113 GB, free: 13.4 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2.fmu > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)