Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Interfaces.Examples.ConservationEquation.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 2.312/2.312, allocations: 248.6 MB / 255.9 MB, free: 7.133 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001676/0.001676, allocations: 187.9 kB / 315.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.1 MB / 0.5658 GB, free: 372 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001343/0.001343, allocations: 102.4 kB / 0.67 GB, free: 5.566 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4751/0.4765, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.6926, allocations: 106.2 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.493/2.186, allocations: 381.7 MB / 1.256 GB, free: 242.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/2.186, allocations: 82.72 kB / 1.256 GB, free: 242.4 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.9052/3.091, allocations: 247.3 MB / 1.498 GB, free: 61.7 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/3.091, allocations: 12 kB / 1.498 GB, free: 61.68 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001629/3.093, allocations: 187.1 kB / 1.498 GB, free: 61.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04133/3.134, allocations: 11.46 MB / 1.509 GB, free: 50.01 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006374/3.135, allocations: 88.7 kB / 1.509 GB, free: 49.93 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/3.135, allocations: 24 kB / 1.509 GB, free: 49.9 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009402/3.136, allocations: 301.4 kB / 1.51 GB, free: 49.61 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009465/3.137, allocations: 404.5 kB / 1.51 GB, free: 49.19 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/3.137, allocations: 4 kB / 1.51 GB, free: 49.18 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.44e-05/3.137, allocations: 0 / 1.51 GB, free: 49.18 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.832e-05/3.137, allocations: 15.94 kB / 1.51 GB, free: 49.17 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004557/3.142, allocations: 2.234 MB / 1.512 GB, free: 46.76 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000739/3.143, allocations: 262.8 kB / 1.512 GB, free: 46.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003915/3.143, allocations: 169 kB / 1.513 GB, free: 46.33 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003535/3.143, allocations: 344.6 kB / 1.513 GB, free: 45.92 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000533/3.144, allocations: 238.7 kB / 1.513 GB, free: 45.66 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 5.961e-06/3.144, allocations: 0 / 1.513 GB, free: 45.66 MB / 0.8542 GB Notification: Performance of matching and sorting (n=33): time 0.001692/3.146, allocations: 437.8 kB / 1.514 GB, free: 45.23 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/3.146, allocations: 89.09 kB / 1.514 GB, free: 45.13 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/3.146, allocations: 365.3 kB / 1.514 GB, free: 44.77 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.446e-05/3.147, allocations: 25.7 kB / 1.514 GB, free: 44.73 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/3.147, allocations: 216.2 kB / 1.514 GB, free: 44.52 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/3.147, allocations: 98.47 kB / 1.514 GB, free: 44.42 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.321e-05/3.147, allocations: 4 kB / 1.514 GB, free: 44.41 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000117/3.147, allocations: 358.8 kB / 1.515 GB, free: 44.05 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004588/3.147, allocations: 127.7 kB / 1.515 GB, free: 43.93 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/3.148, allocations: 219.1 kB / 1.515 GB, free: 43.68 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006598/3.149, allocations: 169.2 kB / 1.515 GB, free: 43.51 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/3.149, allocations: 0 / 1.515 GB, free: 43.51 MB / 0.8542 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001564/3.15, allocations: 469.9 kB / 1.516 GB, free: 43.04 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001527/3.15, allocations: 0.6161 MB / 1.516 GB, free: 42.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/3.15, allocations: 0 / 1.516 GB, free: 42.38 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000246/3.151, allocations: 52.83 kB / 1.516 GB, free: 42.32 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007319/3.151, allocations: 87.89 kB / 1.516 GB, free: 42.24 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006319/3.152, allocations: 0.6069 MB / 1.517 GB, free: 41.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/3.153, allocations: 75.69 kB / 1.517 GB, free: 41.53 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.678e-05/3.153, allocations: 20.05 kB / 1.517 GB, free: 41.51 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/3.153, allocations: 4 kB / 1.517 GB, free: 41.51 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001296/3.155, allocations: 379.9 kB / 1.517 GB, free: 41.14 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/3.155, allocations: 4 kB / 1.517 GB, free: 41.13 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/3.155, allocations: 45.02 kB / 1.517 GB, free: 41.09 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007203/3.156, allocations: 87.89 kB / 1.518 GB, free: 41 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/3.158, allocations: 1.501 MB / 1.519 GB, free: 39.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/3.159, allocations: 75.78 kB / 1.519 GB, free: 39.31 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-05/3.159, allocations: 23.97 kB / 1.519 GB, free: 39.29 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002323/3.159, allocations: 144.3 kB / 1.519 GB, free: 39.13 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/3.159, allocations: 59.34 kB / 1.519 GB, free: 39.07 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/3.161, allocations: 499.9 kB / 1.52 GB, free: 38.58 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/3.161, allocations: 4 kB / 1.52 GB, free: 38.57 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/3.161, allocations: 3.938 kB / 1.52 GB, free: 38.57 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001227/3.162, allocations: 0.6474 MB / 1.52 GB, free: 37.85 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/3.165, allocations: 1.098 MB / 1.521 GB, free: 36.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/3.165, allocations: 0 / 1.521 GB, free: 36.71 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006799/3.166, allocations: 75.98 kB / 1.522 GB, free: 36.63 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/3.166, allocations: 32.84 kB / 1.522 GB, free: 36.6 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.106e-05/3.166, allocations: 11.98 kB / 1.522 GB, free: 36.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003934/3.166, allocations: 0.5797 MB / 1.522 GB, free: 35.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/3.166, allocations: 3.984 kB / 1.522 GB, free: 35.98 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001844/3.168, allocations: 0.8068 MB / 1.523 GB, free: 35.12 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002514/3.171, allocations: 1.413 MB / 1.524 GB, free: 33.66 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005433/3.171, allocations: 184.3 kB / 1.525 GB, free: 33.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/3.172, allocations: 12.06 kB / 1.525 GB, free: 33.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/3.173, allocations: 67.78 kB / 1.525 GB, free: 33.39 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/3.173, allocations: 15.97 kB / 1.525 GB, free: 33.37 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.242e-05/3.173, allocations: 27.98 kB / 1.525 GB, free: 33.34 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0004489/3.173, allocations: 286.9 kB / 1.525 GB, free: 33.07 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.003738/3.177, allocations: 451.2 kB / 1.525 GB, free: 32.62 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/3.178, allocations: 415 kB / 1.526 GB, free: 32.25 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001891/3.18, allocations: 0.7034 MB / 1.526 GB, free: 31.52 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/3.18, allocations: 0 / 1.526 GB, free: 31.52 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005515/3.181, allocations: 245.4 kB / 1.527 GB, free: 31.28 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002301/3.183, allocations: 219.3 kB / 1.527 GB, free: 31.06 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/3.186, allocations: 0.7634 MB / 1.528 GB, free: 30.26 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/3.187, allocations: 0.9446 MB / 1.529 GB, free: 29.29 MB / 0.8542 GB Notification: Performance of SimCode: time 1.513e-06/3.187, allocations: 0 / 1.529 GB, free: 29.29 MB / 0.8542 GB