Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValves.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.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") translateModel(ThermoPower.Test.WaterComponents.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 109.9 kB / 17.73 MB, free: 5.324 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.001135/0.001135, allocations: 193.5 kB / 18.67 MB, free: 4.398 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.224/1.224, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2397/0.2397, allocations: 48.84 MB / 320.7 MB, free: 11 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.001277/0.001277, allocations: 60.47 kB / 451.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.08774, allocations: 59.17 MB / 0.4984 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValves): time 0.2319/0.3196, allocations: 70.88 MB / 0.5676 GB, free: 7.781 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.013/0.3327, allocations: 11.89 MB / 0.5792 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007382/0.3335, allocations: 19.44 kB / 0.5793 GB, free: 15.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.3346, allocations: 415.9 kB / 0.5797 GB, free: 15.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001225/0.3359, allocations: 0.5058 MB / 0.5801 GB, free: 14.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01315/0.349, allocations: 5.564 MB / 0.5856 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001946/0.351, allocations: 1.369 MB / 0.5869 GB, free: 9.93 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008329/0.3519, allocations: 0.5634 MB / 0.5875 GB, free: 9.562 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008565/0.3527, allocations: 0.5194 MB / 0.588 GB, free: 9.289 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000861/0.3536, allocations: 0.5795 MB / 0.5885 GB, free: 8.934 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.3537, allocations: 60.5 kB / 0.5886 GB, free: 8.934 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01118/0.3649, allocations: 6.483 MB / 0.5949 GB, free: 5.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.3651, allocations: 155.4 kB / 0.5951 GB, free: 5.461 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006116/0.3658, allocations: 439.6 kB / 0.5955 GB, free: 5.191 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007456/0.3732, allocations: 4.338 MB / 0.5997 GB, free: 2.316 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3733, allocations: 0 / 0.5997 GB, free: 2.316 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3733, allocations: 0 / 0.5997 GB, free: 2.316 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.059e-05/0.3733, allocations: 0 / 0.5997 GB, free: 2.316 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.005287/0.3786, allocations: 1.812 MB / 0.6015 GB, free: 464 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.3786, allocations: 11.89 kB / 0.6015 GB, free: 452 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004715/0.3791, allocations: 123.9 kB / 0.6016 GB, free: 328 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008227/0.3799, allocations: 0.5734 MB / 0.6022 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.38, allocations: 37.69 kB / 0.6022 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-05/0.3801, allocations: 48.56 kB / 0.6023 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.3818, allocations: 0.8411 MB / 0.6031 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3818, allocations: 0 / 0.6031 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-05/0.3819, allocations: 20 kB / 0.6031 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.3819, allocations: 16 kB / 0.6031 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.3838, allocations: 0.832 MB / 0.6039 GB, free: 13.88 MB / 462.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.003376/0.3871, allocations: 3.513 MB / 0.6074 GB, free: 10.01 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.3882, allocations: 406.7 kB / 0.6078 GB, free: 9.605 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003923/0.3886, allocations: 198.3 kB / 0.6079 GB, free: 9.41 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0575/0.4461, allocations: 32.13 MB / 0.6393 GB, free: 5.469 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.4461, allocations: 38.56 kB / 0.6394 GB, free: 5.422 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004589/0.4466, allocations: 83.48 kB / 0.6394 GB, free: 5.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=31): time 2.975e-06/0.4466, allocations: 0 / 0.6394 GB, free: 5.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=31): time 0.007858/0.4545, allocations: 1.801 MB / 0.6412 GB, free: 3.508 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.4545, allocations: 55.41 kB / 0.6413 GB, free: 3.441 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006501/0.4552, allocations: 0.6179 MB / 0.6419 GB, free: 2.812 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.4552, allocations: 29.7 kB / 0.6419 GB, free: 2.777 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/0.4555, allocations: 340 kB / 0.6422 GB, free: 2.441 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.119e-05/0.4555, allocations: 114.4 kB / 0.6423 GB, free: 2.328 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.4557, allocations: 85.89 kB / 0.6424 GB, free: 2.234 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.771e-05/0.4558, allocations: 321.9 kB / 0.6427 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.4562, allocations: 158.1 kB / 0.6429 GB, free: 1.758 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003991/0.4566, allocations: 214.3 kB / 0.6431 GB, free: 1.531 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007767/0.4574, allocations: 380.9 kB / 0.6434 GB, free: 1.141 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4574, allocations: 0 / 0.6434 GB, free: 1.141 MB / 494.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001341/0.4587, allocations: 0.6335 MB / 0.644 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.4587, allocations: 11.94 kB / 0.6441 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4588, allocations: 0 / 0.6441 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007051/0.4658, allocations: 1.187 MB / 0.6452 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.466, allocations: 51.89 kB / 0.6453 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.4676, allocations: 0.9549 MB / 0.6462 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00046/0.4681, allocations: 32.03 kB / 0.6462 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.4681, allocations: 15.98 kB / 0.6462 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004522/0.4686, allocations: 264.7 kB / 0.6465 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003682/0.469, allocations: 224.7 kB / 0.6467 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007072/0.4697, allocations: 385.3 kB / 0.6471 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-06/0.4697, allocations: 0 / 0.6471 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.001147/0.4708, allocations: 0.5284 MB / 0.6476 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.4709, allocations: 7.906 kB / 0.6476 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.4709, allocations: 4 kB / 0.6476 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002627/0.4711, allocations: 69.02 kB / 0.6477 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.4715, allocations: 92.42 kB / 0.6478 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.4728, allocations: 1.566 MB / 0.6493 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004415/0.4733, allocations: 31.97 kB / 0.6493 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.4733, allocations: 19.98 kB / 0.6493 GB, free: 10.84 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (V5.fluidState.phase,V4.fluidState.phase,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 (18): * Single equations (assignments): 17 * 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 {(6,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.4735, allocations: 196.3 kB / 0.6495 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.4736, allocations: 71.16 kB / 0.6496 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002475/0.4761, allocations: 2.03 MB / 0.6516 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.4761, allocations: 23.97 kB / 0.6516 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.4761, allocations: 0 / 0.6516 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4761, allocations: 3.984 kB / 0.6516 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009164/0.477, allocations: 0.9465 MB / 0.6525 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.477, allocations: 3.938 kB / 0.6525 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.4772, allocations: 31.97 kB / 0.6526 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002888/0.4801, allocations: 1.397 MB / 0.6539 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.4801, allocations: 15.98 kB / 0.6539 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001978/0.4821, allocations: 2.06 MB / 0.6559 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4821, allocations: 3.938 kB / 0.656 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00197/0.4841, allocations: 1.751 MB / 0.6577 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001583/0.4843, allocations: 175.8 kB / 0.6578 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.655e-05/0.4844, allocations: 15.98 kB / 0.6578 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003507/0.4847, allocations: 19.98 kB / 0.6579 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.886e-05/0.4848, allocations: 41.92 kB / 0.6579 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.4849, allocations: 20 kB / 0.6579 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004371/0.4853, allocations: 447 kB / 0.6583 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4853, allocations: 0 / 0.6583 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002476/0.4878, allocations: 1.097 MB / 0.6594 GB, free: 368 kB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 {(5,35)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003401/0.4912, allocations: 1 MB / 0.6604 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002274/0.4935, allocations: 0.9159 MB / 0.6613 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4935, allocations: 0 / 0.6613 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008755/0.4944, allocations: 495.9 kB / 0.6618 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.4962, allocations: 426.3 kB / 0.6622 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002019/0.4982, allocations: 1.624 MB / 0.6638 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.4987, allocations: 0.9946 MB / 0.6647 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.81e-05/0.4988, allocations: 47.42 kB / 0.6648 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.4988, allocations: 0 / 0.6648 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of Templates: time 0.03227/0.5311, allocations: 27.83 MB / 0.692 GB, free: 14.91 MB / 0.545 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValves.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1)