Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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.263/2.263, allocations: 248.6 MB / 255.9 MB, free: 7.113 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.001762/0.001761, allocations: 173.3 kB / 315.1 MB, free: 4.242 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.967/1.967, allocations: 205.1 MB / 0.5658 GB, free: 332 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.001257/0.001257, allocations: 91.28 kB / 0.67 GB, free: 5.523 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5261/0.5274, allocations: 112.4 MB / 0.7797 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.7894, allocations: 106.2 MB / 0.8835 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.446/7.235, allocations: 2.431 GB / 3.315 GB, free: 246.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/7.235, allocations: 83.83 kB / 3.315 GB, free: 246.9 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 3.297/10.53, allocations: 0.6334 GB / 3.948 GB, free: 160.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.233e-05/10.53, allocations: 7.031 kB / 3.948 GB, free: 160.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007927/10.54, allocations: 0.5963 MB / 3.949 GB, free: 160.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04984/10.59, allocations: 12.76 MB / 3.961 GB, free: 159.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003741/10.59, allocations: 327.9 kB / 3.961 GB, free: 159.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005036/10.59, allocations: 48.84 kB / 3.961 GB, free: 159.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00263/10.6, allocations: 0.7731 MB / 3.962 GB, free: 159.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002555/10.6, allocations: 0.8863 MB / 3.963 GB, free: 159.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/10.6, allocations: 0 / 3.963 GB, free: 159.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/10.6, allocations: 3.344 kB / 3.963 GB, free: 159.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.677e-05/10.6, allocations: 27.19 kB / 3.963 GB, free: 159.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01151/10.61, allocations: 3.274 MB / 3.966 GB, free: 158.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/10.61, allocations: 0.5509 MB / 3.967 GB, free: 158.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000924/10.61, allocations: 367.8 kB / 3.967 GB, free: 158.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001193/10.62, allocations: 1.04 MB / 3.968 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/10.62, allocations: 476.4 kB / 3.969 GB, free: 157.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=58): time 4.178e-06/10.62, allocations: 0 / 3.969 GB, free: 157.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=58): time 0.003405/10.62, allocations: 0.791 MB / 3.969 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/10.62, allocations: 135.6 kB / 3.97 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/10.62, allocations: 0.6564 MB / 3.97 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002889/10.62, allocations: 29.64 kB / 3.97 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003148/10.62, allocations: 328.7 kB / 3.971 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002707/10.62, allocations: 186.1 kB / 3.971 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.487e-05/10.62, allocations: 0 / 3.971 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.177e-05/10.62, allocations: 335 kB / 3.971 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008821/10.62, allocations: 319.7 kB / 3.971 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/10.63, allocations: 0.5121 MB / 3.972 GB, free: 156 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/10.63, allocations: 433.1 kB / 3.972 GB, free: 156 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/10.63, allocations: 0 / 3.972 GB, free: 156 MB / 0.8698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003267/10.63, allocations: 0.928 MB / 3.973 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/10.63, allocations: 6.844 kB / 3.973 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/10.63, allocations: 3.844 kB / 3.973 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.163e-05/10.63, allocations: 11.28 kB / 3.973 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002227/10.63, allocations: 233.3 kB / 3.973 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/10.63, allocations: 10.19 kB / 3.973 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/10.64, allocations: 295.1 kB / 3.974 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003148/10.64, allocations: 54.56 kB / 3.974 GB, free: 155.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (69): * Single equations (assignments): 68 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003522/10.64, allocations: 160.4 kB / 3.974 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003167/10.64, allocations: 91.09 kB / 3.974 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002926/10.64, allocations: 0.8596 MB / 3.975 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/10.64, allocations: 7.875 kB / 3.975 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/10.64, allocations: 0 / 3.975 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/10.64, allocations: 3.891 kB / 3.975 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007846/10.65, allocations: 3.051 MB / 3.978 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/10.65, allocations: 7.844 kB / 3.978 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/10.65, allocations: 133.5 kB / 3.978 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.947e-05/10.65, allocations: 10.66 kB / 3.978 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/10.65, allocations: 29.34 kB / 3.978 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.28e-05/10.65, allocations: 13.06 kB / 3.978 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.268e-05/10.65, allocations: 12.19 kB / 3.978 GB, free: 155 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002984/10.65, allocations: 1.568 MB / 3.98 GB, free: 153.9 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003494/10.66, allocations: 2.042 MB / 3.982 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/10.66, allocations: 311.8 kB / 3.982 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004199/10.66, allocations: 10.53 kB / 3.982 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002596/10.66, allocations: 139.8 kB / 3.982 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/10.66, allocations: 59.34 kB / 3.982 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001872/10.66, allocations: 48.47 kB / 3.982 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001193/10.66, allocations: 0.5015 MB / 3.983 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004106/10.67, allocations: 0.5897 MB / 3.983 GB, free: 152.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 0 () * 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 (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003425/10.67, allocations: 1.758 MB / 3.985 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002283/10.67, allocations: 0.7833 MB / 3.986 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-05/10.67, allocations: 0 / 3.986 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/10.67, allocations: 457.3 kB / 3.986 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/10.68, allocations: 352.6 kB / 3.986 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005354/10.68, allocations: 1.515 MB / 3.988 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00238/10.68, allocations: 1.191 MB / 3.989 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of SimCode: time 2.074e-06/10.69, allocations: 0 / 3.989 GB, free: 150.5 MB / 0.8698 GB