Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve.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.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.FixedResistances.Examples.CheckValve") [: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.111/2.111, allocations: 253.1 MB / 260.4 MB, free: 0.5586 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.001763/0.001763, allocations: 189.4 kB / 319.6 MB, free: 7.688 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 2.107/2.107, allocations: 205.4 MB / 0.5704 GB, free: 25.64 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.001432/0.001432, allocations: 79.45 kB / 0.6746 GB, free: 3.086 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 8.155e-06/8.296e-06, allocations: 0 / 0.7843 GB, free: 2.707 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5936/0.5937, allocations: 106.2 MB / 0.888 GB, free: 77.14 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.957/1.551, allocations: 370.2 MB / 1.25 GB, free: 4.434 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003643/1.551, allocations: 85.38 kB / 1.25 GB, free: 4.391 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.388/2.939, allocations: 244 MB / 1.488 GB, free: 232 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.706e-05/2.939, allocations: 16 kB / 1.488 GB, free: 232 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.002545/2.942, allocations: 0.8406 MB / 1.489 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/2.942, allocations: 8.031 kB / 1.489 GB, free: 231.1 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003311/2.942, allocations: 67.16 kB / 1.489 GB, free: 231 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/2.944, allocations: 463 kB / 1.489 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/2.944, allocations: 8 kB / 1.489 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.252e-05/2.944, allocations: 24 kB / 1.489 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006718/2.945, allocations: 193.2 kB / 1.489 GB, free: 230.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007043/2.945, allocations: 232.8 kB / 1.49 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/2.945, allocations: 4 kB / 1.49 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.699e-05/2.945, allocations: 0 / 1.49 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.716e-05/2.945, allocations: 4 kB / 1.49 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003114/2.949, allocations: 1.23 MB / 1.491 GB, free: 228.8 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008669/2.949, allocations: 232.7 kB / 1.491 GB, free: 228.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/2.95, allocations: 100.8 kB / 1.491 GB, free: 228.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004919/2.95, allocations: 0.4985 MB / 1.492 GB, free: 227.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/2.95, allocations: 38.56 kB / 1.492 GB, free: 227.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=25): time 3.536e-06/2.95, allocations: 0 / 1.492 GB, free: 227.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=25): time 0.001229/2.952, allocations: 266.2 kB / 1.492 GB, free: 227.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/2.952, allocations: 55.41 kB / 1.492 GB, free: 227.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006067/2.952, allocations: 357.2 kB / 1.492 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 9.155e-05/2.952, allocations: 29.7 kB / 1.492 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/2.952, allocations: 176.6 kB / 1.493 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.641e-05/2.953, allocations: 86.75 kB / 1.493 GB, free: 226.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/2.953, allocations: 224 / 1.493 GB, free: 226.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001074/2.953, allocations: 358.7 kB / 1.493 GB, free: 226.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000277/2.953, allocations: 84.55 kB / 1.493 GB, free: 226.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/2.953, allocations: 178.1 kB / 1.493 GB, free: 226.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005566/2.954, allocations: 123.9 kB / 1.493 GB, free: 226 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/2.954, allocations: 0 / 1.493 GB, free: 226 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001399/2.955, allocations: 344.6 kB / 1.494 GB, free: 225.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.524e-05/2.956, allocations: 270.8 kB / 1.494 GB, free: 225.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/2.956, allocations: 0 / 1.494 GB, free: 225.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/2.956, allocations: 44.83 kB / 1.494 GB, free: 225.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007195/2.957, allocations: 79.89 kB / 1.494 GB, free: 225.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006679/2.957, allocations: 0.5757 MB / 1.495 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/2.958, allocations: 63.75 kB / 1.495 GB, free: 224.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.681e-05/2.958, allocations: 19.98 kB / 1.495 GB, free: 224.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/2.959, allocations: 6.812 kB / 1.495 GB, free: 224.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008781/2.959, allocations: 215.8 kB / 1.495 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/2.959, allocations: 0 / 1.495 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/2.959, allocations: 4 kB / 1.495 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007972/2.96, allocations: 87.88 kB / 1.495 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/2.96, allocations: 4 kB / 1.495 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/2.961, allocations: 63.69 kB / 1.495 GB, free: 224.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/2.961, allocations: 15.98 kB / 1.495 GB, free: 224.2 MB / 0.8698 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: checkValve_m_flow.a:VARIABLE(protected = true ) "Scaled pressure variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002228/2.962, allocations: 113.6 kB / 1.495 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/2.962, allocations: 47.44 kB / 1.495 GB, free: 224 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/2.963, allocations: 355.6 kB / 1.496 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/2.963, allocations: 4 kB / 1.496 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/2.963, allocations: 0 / 1.496 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/2.963, allocations: 4 kB / 1.496 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/2.965, allocations: 0.8175 MB / 1.496 GB, free: 222.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/2.965, allocations: 3.938 kB / 1.496 GB, free: 222.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006847/2.966, allocations: 56.08 kB / 1.496 GB, free: 222.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003645/2.966, allocations: 40.75 kB / 1.497 GB, free: 222.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.054e-05/2.966, allocations: 4 kB / 1.497 GB, free: 222.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000613/2.967, allocations: 0.5718 MB / 1.497 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/2.967, allocations: 0 / 1.497 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002579/2.97, allocations: 466.6 kB / 1.498 GB, free: 221.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000317/2.97, allocations: 160.3 kB / 1.498 GB, free: 221.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/2.97, allocations: 0 / 1.498 GB, free: 221.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007434/2.971, allocations: 43.95 kB / 1.498 GB, free: 221.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/2.971, allocations: 20.16 kB / 1.498 GB, free: 221.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.802e-05/2.971, allocations: 8 kB / 1.498 GB, free: 221.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0004152/2.972, allocations: 275 kB / 1.498 GB, free: 221.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001239/2.973, allocations: 275.4 kB / 1.498 GB, free: 220.8 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008394/2.974, allocations: 364.6 kB / 1.499 GB, free: 220.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001264/2.975, allocations: 393.5 kB / 1.499 GB, free: 220.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/2.975, allocations: 0 / 1.499 GB, free: 220.1 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004091/2.975, allocations: 134.9 kB / 1.499 GB, free: 219.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/2.978, allocations: 226.1 kB / 1.499 GB, free: 219.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/2.98, allocations: 0.5898 MB / 1.5 GB, free: 219.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005301/2.98, allocations: 0.9176 MB / 1.501 GB, free: 218.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.182e-06/2.98, allocations: 0 / 1.501 GB, free: 218.2 MB / 0.8698 GB Notification: Performance of Templates: time 0.03007/3.01, allocations: 11.34 MB / 1.512 GB, free: 207 MB / 0.8698 GB