Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation") translateModel(Annex60.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007525/0.0007526, allocations: 92 kB / 15.36 MB, free: 0.7383 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.005585/0.005585, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.364/1.364, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3616/0.3616, allocations: 55.01 MB / 325.7 MB, free: 0.5977 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: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005174/0.0005174, allocations: 16 kB / 397.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3223, allocations: 60.71 MB / 458 MB, free: 38.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Interfaces.Examples.ConservationEquation): time 0.01587/0.3382, allocations: 20 MB / 478 MB, free: 27.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005709/0.344, allocations: 4.593 MB / 482.6 MB, free: 24.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000696/0.3447, allocations: 23.22 kB / 482.6 MB, free: 24.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009134/0.3456, allocations: 315.1 kB / 482.9 MB, free: 23.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001902/0.3475, allocations: 0.7994 MB / 483.7 MB, free: 23.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001869/0.3494, allocations: 0.7003 MB / 484.4 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002168/0.3516, allocations: 2.376 MB / 486.8 MB, free: 22.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006727/0.3523, allocations: 429 kB / 487.2 MB, free: 22.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001061/0.3534, allocations: 0.6232 MB / 487.8 MB, free: 21.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008763/0.3542, allocations: 0.5235 MB / 488.3 MB, free: 21.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.973e-05/0.3544, allocations: 27 kB / 488.4 MB, free: 21.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.356, allocations: 1.02 MB / 489.4 MB, free: 21.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.3562, allocations: 133.3 kB / 489.5 MB, free: 21.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004452/0.3566, allocations: 353.1 kB / 489.9 MB, free: 21.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001577/0.3582, allocations: 1.184 MB / 491 MB, free: 20.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3582, allocations: 0 / 491 MB, free: 20.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3582, allocations: 0 / 491 MB, free: 20.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.432e-05/0.3583, allocations: 0 / 491 MB, free: 20.71 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001648/0.3599, allocations: 0.9378 MB / 492 MB, free: 19.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.36, allocations: 11.81 kB / 492 MB, free: 19.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.361, allocations: 210.5 kB / 492.2 MB, free: 19.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008273/0.3618, allocations: 0.5198 MB / 492.7 MB, free: 19.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/0.3622, allocations: 97.17 kB / 492.8 MB, free: 19.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/0.3623, allocations: 42.69 kB / 492.9 MB, free: 19.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.3642, allocations: 0.7968 MB / 493.6 MB, free: 19.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.3643, allocations: 1.312 kB / 493.6 MB, free: 19.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.365e-05/0.3643, allocations: 22.73 kB / 493.7 MB, free: 19.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.806e-05/0.3644, allocations: 13.78 kB / 493.7 MB, free: 19.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002158/0.3666, allocations: 0.6472 MB / 494.3 MB, free: 19.01 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.002934/0.3695, allocations: 3.186 MB / 497.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.3715, allocations: 0.5485 MB / 498.1 MB, free: 16.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004852/0.372, allocations: 231.4 kB / 498.3 MB, free: 16.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.372, allocations: 8.453 kB / 498.3 MB, free: 16.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001531/0.3735, allocations: 0.4926 MB / 498.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.884e-06/0.3735, allocations: 1.5 kB / 498.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003468/0.377, allocations: 1.029 MB / 499.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.3771, allocations: 190.5 kB / 0.4883 GB, free: 15.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006989/0.3778, allocations: 0.5312 MB / 0.4888 GB, free: 15.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.3779, allocations: 37.55 kB / 0.4888 GB, free: 15.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.3781, allocations: 317.2 kB / 0.4891 GB, free: 14.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.866e-05/0.3782, allocations: 111.3 kB / 0.4893 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.756e-05/0.3782, allocations: 39.7 kB / 0.4893 GB, free: 14.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3784, allocations: 366.7 kB / 0.4896 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007576/0.3791, allocations: 254.2 kB / 0.4899 GB, free: 14.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008749/0.38, allocations: 416.2 kB / 0.4903 GB, free: 14.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003577/0.3836, allocations: 1.269 MB / 0.4915 GB, free: 13.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.3836, allocations: 1.312 kB / 0.4915 GB, free: 13.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.002018/0.3856, allocations: 0.7674 MB / 0.4923 GB, free: 13.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.3858, allocations: 224 kB / 0.4925 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3858, allocations: 3.094 kB / 0.4925 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.771e-05/0.3858, allocations: 6.312 kB / 0.4925 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.3866, allocations: 165 kB / 0.4927 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003112/0.387, allocations: 0.6042 MB / 0.4932 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009005/0.3879, allocations: 121.2 kB / 0.4934 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/0.388, allocations: 18.17 kB / 0.4934 GB, free: 12.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.388, allocations: 4.406 kB / 0.4934 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001287/0.3893, allocations: 0.586 MB / 0.4939 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3893, allocations: 3.75 kB / 0.494 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.3893, allocations: 7.625 kB / 0.494 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005838/0.3899, allocations: 134.8 kB / 0.4941 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000229/0.3901, allocations: 0.6033 MB / 0.4947 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006308/0.3908, allocations: 91.92 kB / 0.4948 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-05/0.3908, allocations: 21.66 kB / 0.4948 GB, free: 11.54 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: dyn.U:VARIABLE(start = 0.01 * dyn.rho_start * Annex60.Fluid.Interfaces.Examples.ConservationEquation.dyn.Medium.specificInternalEnergy(Annex60.Fluid.Interfaces.Examples.ConservationEquation.dyn.Medium.setState_pTX(dyn.p_start, dyn.T_start, {})) unit = "J" fixed = true nominal = 100000.0 ) "Internal energy of fluid" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005233/0.3914, allocations: 321.5 kB / 0.4951 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.3915, allocations: 62.22 kB / 0.4952 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.3936, allocations: 0.7484 MB / 0.4959 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.3936, allocations: 4.031 kB / 0.4959 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.3936, allocations: 2.156 kB / 0.4959 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001739/0.3954, allocations: 0.9038 MB / 0.4968 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.3983, allocations: 1.325 MB / 0.4981 GB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.3983, allocations: 1.375 kB / 0.4981 GB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006152/0.3989, allocations: 122.9 kB / 0.4982 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/0.399, allocations: 30.11 kB / 0.4982 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.3991, allocations: 16.11 kB / 0.4982 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002437/0.3993, allocations: 0.5519 MB / 0.4988 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.3993, allocations: 0 / 0.4988 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002659/0.402, allocations: 1.162 MB / 0.4999 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/0.4023, allocations: 184.2 kB / 0.5001 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.4024, allocations: 10.45 kB / 0.5001 GB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007165/0.4032, allocations: 87.78 kB / 0.5002 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.4032, allocations: 29.16 kB / 0.5002 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.4033, allocations: 14.09 kB / 0.5002 GB, free: 8.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004681/0.4038, allocations: 378.7 kB / 0.5006 GB, free: 8.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4038, allocations: 0 / 0.5006 GB, free: 8.387 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001251/0.405, allocations: 342.1 kB / 0.5009 GB, free: 8.328 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (dyn.U,dyn.m) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006632/0.4057, allocations: 260.7 kB / 0.5011 GB, free: 8.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002899/0.4086, allocations: 1.068 MB / 0.5022 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.4086, allocations: 0.9688 kB / 0.5022 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009699/0.4096, allocations: 387.8 kB / 0.5026 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.4113, allocations: 274.5 kB / 0.5028 GB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.4141, allocations: 1.571 MB / 0.5044 GB, free: 6.715 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.4145, allocations: 0.8971 MB / 0.5052 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007144/0.4152, allocations: 140.6 kB / 0.5054 GB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.4154, allocations: 54.23 kB / 0.5054 GB, free: 5.949 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4154, allocations: 0 / 0.5054 GB, free: 5.949 MB / 382.1 MB Notification: Performance of Templates: time 0.02114/0.4366, allocations: 11.66 MB / 0.5168 GB, free: 15.18 MB / 398.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1) Environment - environmentSimulation: