Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4811/0.4811, allocations: 94.73 MB / 102 MB, free: 10.37 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001162/0.001162, allocations: 182.2 kB / 125.3 MB, free: 12 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.283/1.283, allocations: 170.5 MB / 319 MB, free: 9.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001647/0.001647, allocations: 114.7 kB / 381 MB, free: 18.12 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.007e-05/1.011e-05, allocations: 4.219 kB / 448.6 MB, free: 2.145 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1536, allocations: 61.51 MB / 0.4981 GB, free: 4.539 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.017/1.17, allocations: 404.3 MB / 0.893 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000416/1.171, allocations: 87.2 kB / 0.893 GB, free: 2.898 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.7253/1.896, allocations: 193.8 MB / 1.082 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.819e-05/1.896, allocations: 19.98 kB / 1.082 GB, free: 24.86 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002718/1.899, allocations: 0.8837 MB / 1.083 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.856e-05/1.899, allocations: 8.781 kB / 1.083 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007184/1.9, allocations: 91.05 kB / 1.083 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002016/1.902, allocations: 0.6494 MB / 1.084 GB, free: 23.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/1.902, allocations: 12 kB / 1.084 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/1.902, allocations: 28 kB / 1.084 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007377/1.903, allocations: 321.8 kB / 1.084 GB, free: 22.79 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008329/1.904, allocations: 467.4 kB / 1.085 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/1.904, allocations: 0 / 1.085 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.153e-05/1.904, allocations: 7.938 kB / 1.085 GB, free: 22.28 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/1.904, allocations: 8 kB / 1.085 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003698/1.908, allocations: 2.401 MB / 1.087 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004951/1.908, allocations: 230.5 kB / 1.087 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/1.908, allocations: 136.8 kB / 1.087 GB, free: 19.37 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000888/1.909, allocations: 1.128 MB / 1.089 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003176/1.91, allocations: 240.5 kB / 1.089 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=30): time 5.03e-06/1.91, allocations: 112 / 1.089 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38): time 0.01852/1.928, allocations: 2.191 MB / 1.091 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/1.928, allocations: 217.9 kB / 1.091 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006172/1.929, allocations: 390.1 kB / 1.091 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.982e-05/1.929, allocations: 25.7 kB / 1.091 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/1.929, allocations: 259.4 kB / 1.092 GB, free: 14.48 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/1.929, allocations: 122.2 kB / 1.092 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.348e-05/1.929, allocations: 0 / 1.092 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001134/1.93, allocations: 362.8 kB / 1.092 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/1.93, allocations: 129 kB / 1.092 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/1.93, allocations: 332.6 kB / 1.093 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007215/1.931, allocations: 215.8 kB / 1.093 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/1.931, allocations: 0 / 1.093 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001329/1.932, allocations: 0.5768 MB / 1.093 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004262/1.933, allocations: 1.662 MB / 1.095 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/1.933, allocations: 8 kB / 1.095 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004207/1.933, allocations: 121.7 kB / 1.095 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003277/1.933, allocations: 87.77 kB / 1.095 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/1.935, allocations: 1.272 MB / 1.096 GB, free: 9.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006288/1.935, allocations: 32.05 kB / 1.097 GB, free: 9.289 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.22e-05/1.935, allocations: 27.98 kB / 1.097 GB, free: 9.262 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/1.935, allocations: 7.906 kB / 1.097 GB, free: 9.254 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000993/1.936, allocations: 0.6094 MB / 1.097 GB, free: 8.602 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.936, allocations: 4 kB / 1.097 GB, free: 8.598 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/1.937, allocations: 93.89 kB / 1.097 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/1.937, allocations: 80.14 kB / 1.097 GB, free: 8.422 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002226/1.939, allocations: 2.996 MB / 1.1 GB, free: 5.191 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/1.94, allocations: 32.03 kB / 1.1 GB, free: 5.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/1.94, allocations: 20 kB / 1.1 GB, free: 5.141 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.res1.dp:DUMMY_DER(fixed = false ) "Pressure difference between port_a and port_b" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002794/1.94, allocations: 160.2 kB / 1.1 GB, free: 4.973 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/1.94, allocations: 55.34 kB / 1.1 GB, free: 4.918 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001395/1.942, allocations: 0.523 MB / 1.101 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/1.942, allocations: 7.938 kB / 1.101 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/1.942, allocations: 0 / 1.101 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/1.942, allocations: 0 / 1.101 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/1.944, allocations: 1.013 MB / 1.102 GB, free: 3.312 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/1.944, allocations: 0 / 1.102 GB, free: 3.312 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/1.944, allocations: 59.91 kB / 1.102 GB, free: 3.254 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002368/1.944, allocations: 77.67 kB / 1.102 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/1.944, allocations: 11.98 kB / 1.102 GB, free: 3.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008163/1.945, allocations: 1.183 MB / 1.103 GB, free: 1.926 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.945, allocations: 3.906 kB / 1.103 GB, free: 1.922 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001254/1.946, allocations: 0.723 MB / 1.104 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003412/1.947, allocations: 176.3 kB / 1.104 GB, free: 0.9844 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/1.947, allocations: 0 / 1.104 GB, free: 0.9844 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004363/1.947, allocations: 32.03 kB / 1.104 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/1.947, allocations: 15.98 kB / 1.104 GB, free: 0.9375 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-05/1.947, allocations: 19.98 kB / 1.104 GB, free: 0.918 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003372/1.948, allocations: 294.9 kB / 1.105 GB, free: 0.6328 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002012/1.95, allocations: 463.6 kB / 1.105 GB, free: 184 kB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (dyn.medium.T) * Number of discrete variables: 5 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent) * Number of discrete states: 5 (QSen_flow.last,QSen_flow.nextEvent,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.2769/2.227, allocations: 0.5108 MB / 1.105 GB, free: 180.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002142/2.229, allocations: 0.8785 MB / 1.106 GB, free: 180.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/2.229, allocations: 0 / 1.106 GB, free: 180.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003212/2.229, allocations: 213.3 kB / 1.107 GB, free: 180.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/2.23, allocations: 201 kB / 1.107 GB, free: 180.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/2.232, allocations: 0.7439 MB / 1.107 GB, free: 180.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/2.233, allocations: 0.9604 MB / 1.108 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.993e-06/2.233, allocations: 0 / 1.108 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.02806/2.261, allocations: 17.63 MB / 1.126 GB, free: 179.5 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & ./Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)