Running: ./testmodel.py --libraries=/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.037/2.037, allocations: 253.1 MB / 260.4 MB, free: 7.523 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001721/0.001721, allocations: 184.8 kB / 319.6 MB, free: 3.344 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.933/1.933, allocations: 205.4 MB / 0.5704 GB, free: 15.16 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001343/0.001343, allocations: 90.47 kB / 0.6746 GB, free: 4.512 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.088e-05/1.105e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1896, allocations: 106.3 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.955/6.144, allocations: 2.431 GB / 3.319 GB, free: 247.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003557/6.145, allocations: 82.38 kB / 3.319 GB, free: 247.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.934/9.078, allocations: 0.632 GB / 3.951 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001314/9.079, allocations: 35.91 kB / 3.951 GB, free: 155.7 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 0.00578/9.084, allocations: 1.418 MB / 3.953 GB, free: 155.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/9.084, allocations: 7.75 kB / 3.953 GB, free: 155.2 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005069/9.09, allocations: 0.5959 MB / 3.953 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04867/9.138, allocations: 12.77 MB / 3.966 GB, free: 154.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003772/9.142, allocations: 330.6 kB / 3.966 GB, free: 154.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005523/9.143, allocations: 47.14 kB / 3.966 GB, free: 154.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003828/9.147, allocations: 0.7684 MB / 3.967 GB, free: 154.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003845/9.15, allocations: 0.8896 MB / 3.968 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.876e-05/9.151, allocations: 0 / 3.968 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002429/9.151, allocations: 3.594 kB / 3.968 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.686e-05/9.151, allocations: 32.81 kB / 3.968 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01127/9.162, allocations: 3.263 MB / 3.971 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/9.164, allocations: 0.5573 MB / 3.971 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008359/9.165, allocations: 362.9 kB / 3.972 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001136/9.166, allocations: 1.032 MB / 3.973 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/9.167, allocations: 481.9 kB / 3.973 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=58): time 4.298e-06/9.167, allocations: 5.375 kB / 3.973 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=58): time 0.003237/9.17, allocations: 0.7796 MB / 3.974 GB, free: 152 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/9.17, allocations: 142.4 kB / 3.974 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/9.172, allocations: 0.6584 MB / 3.975 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002363/9.172, allocations: 29.58 kB / 3.975 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/9.173, allocations: 321.9 kB / 3.975 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/9.173, allocations: 182.1 kB / 3.975 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/9.173, allocations: 0 / 3.975 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.907e-05/9.173, allocations: 333.9 kB / 3.976 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008566/9.174, allocations: 323.4 kB / 3.976 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/9.175, allocations: 0.5151 MB / 3.976 GB, free: 150.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/9.176, allocations: 427.2 kB / 3.977 GB, free: 150.9 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.866e-06/9.177, allocations: 7.062 kB / 3.977 GB, free: 150.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003164/9.18, allocations: 0.923 MB / 3.978 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/9.18, allocations: 3.656 kB / 3.978 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/9.18, allocations: 11.19 kB / 3.978 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.152e-05/9.18, allocations: 11.19 kB / 3.978 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/9.182, allocations: 237.4 kB / 3.978 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.118e-05/9.182, allocations: 5.406 kB / 3.978 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/9.185, allocations: 289.2 kB / 3.978 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002459/9.186, allocations: 53.95 kB / 3.978 GB, free: 150.8 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.0003526/9.186, allocations: 155.2 kB / 3.978 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/9.186, allocations: 95.05 kB / 3.979 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002918/9.189, allocations: 0.8542 MB / 3.979 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/9.189, allocations: 11.17 kB / 3.979 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/9.189, allocations: 0 / 3.979 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/9.189, allocations: 3.938 kB / 3.979 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007443/9.197, allocations: 3.055 MB / 3.982 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/9.197, allocations: 6.125 kB / 3.982 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/9.198, allocations: 136 kB / 3.982 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.035e-05/9.198, allocations: 17.19 kB / 3.982 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.787e-05/9.198, allocations: 25.5 kB / 3.983 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-05/9.198, allocations: 14.09 kB / 3.983 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/9.198, allocations: 13.88 kB / 3.983 GB, free: 149.9 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002843/9.201, allocations: 1.568 MB / 3.984 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007791/9.202, allocations: 310.9 kB / 3.984 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/9.202, allocations: 18.17 kB / 3.984 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002327/9.205, allocations: 130.3 kB / 3.985 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/9.205, allocations: 57.14 kB / 3.985 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/9.205, allocations: 48.94 kB / 3.985 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001029/9.206, allocations: 0.5048 MB / 3.985 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00232/9.208, allocations: 421.2 kB / 3.986 GB, free: 148.6 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.003065/9.211, allocations: 1.751 MB / 3.987 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002269/9.214, allocations: 0.7856 MB / 3.988 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/9.214, allocations: 2.156 kB / 3.988 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009967/9.215, allocations: 459.8 kB / 3.988 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/9.218, allocations: 338.1 kB / 3.989 GB, free: 148 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004589/9.223, allocations: 1.511 MB / 3.99 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001437/9.224, allocations: 1.199 MB / 3.991 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of SimCode: time 1.292e-06/9.224, allocations: 0 / 3.991 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of Templates: time 0.06003/9.284, allocations: 25.56 MB / 4.016 GB, free: 146.1 MB / 0.8698 GB