Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.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.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",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.001076/0.001076, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.001097/0.001097, allocations: 192 kB / 18 MB, free: 5.098 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.411/1.411, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2993/0.2993, allocations: 48.84 MB / 320.1 MB, free: 11.02 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.001487/0.001487, allocations: 71.84 kB / 450 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.116, allocations: 59.15 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.2886/0.4046, allocations: 44.33 MB / 0.5405 GB, free: 6.359 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.4162, allocations: 9.267 MB / 0.5496 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005438/0.4168, allocations: 9.688 kB / 0.5496 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007242/0.4175, allocations: 214.3 kB / 0.5498 GB, free: 3.254 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000848/0.4185, allocations: 287.3 kB / 0.5501 GB, free: 3.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01624/0.4347, allocations: 5.047 MB / 0.555 GB, free: 1.699 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.4361, allocations: 0.7903 MB / 0.5558 GB, free: 1.473 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006608/0.4368, allocations: 259.3 kB / 0.556 GB, free: 1.441 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001192/0.438, allocations: 408.1 kB / 0.5564 GB, free: 1.309 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006439/0.4387, allocations: 289.4 kB / 0.5567 GB, free: 1.223 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.4388, allocations: 30.19 kB / 0.5567 GB, free: 1.223 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01538/0.4542, allocations: 6.137 MB / 0.5627 GB, free: 15.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.4544, allocations: 92.52 kB / 0.5628 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005327/0.4549, allocations: 238.7 kB / 0.563 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009876/0.4648, allocations: 3.719 MB / 0.5667 GB, free: 12.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4649, allocations: 0 / 0.5667 GB, free: 12.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4649, allocations: 1.562 kB / 0.5667 GB, free: 12.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.252e-05/0.4649, allocations: 0 / 0.5667 GB, free: 12.52 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.004373/0.4693, allocations: 1.208 MB / 0.5678 GB, free: 11.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.4694, allocations: 13.55 kB / 0.5679 GB, free: 11.6 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.653e-05/0.4695, allocations: 64.66 kB / 0.5679 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003434/0.4698, allocations: 70.03 kB / 0.568 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006954/0.4705, allocations: 389.5 kB / 0.5684 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.4706, allocations: 21.62 kB / 0.5684 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.4706, allocations: 32.41 kB / 0.5684 GB, free: 11.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.4718, allocations: 433.7 kB / 0.5688 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.4718, allocations: 0 / 0.5688 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.4719, allocations: 15.95 kB / 0.5688 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.4719, allocations: 9.469 kB / 0.5689 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.4732, allocations: 365.6 kB / 0.5692 GB, free: 10.64 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.00253/0.4758, allocations: 2.121 MB / 0.5713 GB, free: 8.605 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.4771, allocations: 305.3 kB / 0.5716 GB, free: 8.438 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003822/0.4775, allocations: 113.7 kB / 0.5717 GB, free: 8.375 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06659/0.5441, allocations: 32.25 MB / 0.6032 GB, free: 9.922 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.5442, allocations: 38.56 kB / 0.6032 GB, free: 9.875 MB / 462.1 MB Notification: Performance of pre-optimization done (n=17): time 3.176e-06/0.5442, allocations: 4 kB / 0.6032 GB, free: 9.871 MB / 462.1 MB Notification: Performance of matching and sorting (n=17): time 0.001907/0.5461, allocations: 428.9 kB / 0.6036 GB, free: 9.445 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.5462, allocations: 77.11 kB / 0.6037 GB, free: 9.352 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005414/0.5468, allocations: 434.1 kB / 0.6041 GB, free: 8.918 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.5468, allocations: 29.69 kB / 0.6041 GB, free: 8.883 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.547, allocations: 236.3 kB / 0.6044 GB, free: 8.645 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.973e-05/0.5471, allocations: 59.48 kB / 0.6044 GB, free: 8.586 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.202e-05/0.5472, allocations: 49.69 kB / 0.6045 GB, free: 8.531 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5473, allocations: 358.7 kB / 0.6048 GB, free: 8.172 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.5477, allocations: 100.8 kB / 0.6049 GB, free: 8.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003874/0.5481, allocations: 156.5 kB / 0.605 GB, free: 7.891 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000734/0.5488, allocations: 259.8 kB / 0.6053 GB, free: 7.609 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.5488, allocations: 0 / 0.6053 GB, free: 7.609 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009897/0.5498, allocations: 333.2 kB / 0.6056 GB, free: 7.277 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.5499, allocations: 15.91 kB / 0.6056 GB, free: 7.262 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.5499, allocations: 0 / 0.6056 GB, free: 7.262 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.5499, allocations: 4 kB / 0.6056 GB, free: 7.258 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.5503, allocations: 67.94 kB / 0.6057 GB, free: 7.191 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.5503, allocations: 7.938 kB / 0.6057 GB, free: 7.184 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00042/0.5507, allocations: 51.66 kB / 0.6058 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.5507, allocations: 17.36 kB / 0.6058 GB, free: 7.117 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004169/0.5512, allocations: 192.5 kB / 0.606 GB, free: 6.926 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003569/0.5515, allocations: 161.2 kB / 0.6061 GB, free: 6.734 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006963/0.5522, allocations: 261.1 kB / 0.6064 GB, free: 6.445 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.5523, allocations: 0 / 0.6064 GB, free: 6.445 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008973/0.5532, allocations: 317 kB / 0.6067 GB, free: 6.129 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.5532, allocations: 4.281 kB / 0.6067 GB, free: 6.125 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.5532, allocations: 8 kB / 0.6067 GB, free: 6.117 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.781e-06/0.5532, allocations: 4 kB / 0.6067 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003076/0.5535, allocations: 63.89 kB / 0.6067 GB, free: 6.051 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.5535, allocations: 4.469 kB / 0.6067 GB, free: 6.047 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.5539, allocations: 39.86 kB / 0.6068 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.554, allocations: 11.94 kB / 0.6068 GB, free: 5.996 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (ValveVap.fluidState.phase,ValveLiqChocked.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.5541, allocations: 200.2 kB / 0.607 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.5542, allocations: 43.72 kB / 0.607 GB, free: 5.75 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.5554, allocations: 452.8 kB / 0.6075 GB, free: 5.305 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.5554, allocations: 0 / 0.6075 GB, free: 5.305 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.5554, allocations: 4.875 kB / 0.6075 GB, free: 5.301 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-06/0.5554, allocations: 7.922 kB / 0.6075 GB, free: 5.293 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000697/0.5561, allocations: 457.1 kB / 0.6079 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.5562, allocations: 0 / 0.6079 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002935/0.5565, allocations: 51.89 kB / 0.6079 GB, free: 4.746 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.5565, allocations: 8 kB / 0.608 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.5565, allocations: 5.562 kB / 0.608 GB, free: 4.734 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.5565, allocations: 0 / 0.608 GB, free: 4.734 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.5565, allocations: 4 kB / 0.608 GB, free: 4.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009337/0.5575, allocations: 462.1 kB / 0.6084 GB, free: 4.262 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.5576, allocations: 128.6 kB / 0.6085 GB, free: 4.121 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.139e-05/0.5577, allocations: 19.83 kB / 0.6085 GB, free: 4.102 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003464/0.5581, allocations: 19.98 kB / 0.6086 GB, free: 4.082 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.196e-05/0.5582, allocations: 19.91 kB / 0.6086 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.5582, allocations: 12 kB / 0.6086 GB, free: 4.051 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004563/0.5586, allocations: 402.8 kB / 0.609 GB, free: 3.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5586, allocations: 0 / 0.609 GB, free: 3.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003335/0.562, allocations: 0.9397 MB / 0.6099 GB, free: 2.719 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006259/0.5683, allocations: 1.856 MB / 0.6117 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.5696, allocations: 359.6 kB / 0.6121 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5696, allocations: 0 / 0.6121 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003699/0.57, allocations: 120.7 kB / 0.6122 GB, free: 384 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.5714, allocations: 235.8 kB / 0.6124 GB, free: 152 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009094/0.5805, allocations: 4.299 MB / 0.6166 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.581, allocations: 0.8308 MB / 0.6174 GB, free: 10.86 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004028/0.5814, allocations: 152.1 kB / 0.6176 GB, free: 10.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.5816, allocations: 179.3 kB / 0.6177 GB, free: 10.54 MB / 478.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5817, allocations: 0 / 0.6177 GB, free: 10.54 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07819/0.6599, allocations: 39.82 MB / 0.6566 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.44, allocations: 4.062 kB / 0.6566 GB, free: 2.598 MB / 0.4981 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1)