Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.441/2.441, allocations: 248.6 MB / 255.9 MB, free: 396 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001695/0.001695, allocations: 183.9 kB / 315.1 MB, free: 7.797 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.278/2.278, allocations: 205.1 MB / 0.5658 GB, free: 25.52 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001302/0.001302, allocations: 86.56 kB / 0.67 GB, free: 2.977 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.3122/0.3136, allocations: 112.4 MB / 0.7797 GB, free: 2.496 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5512/0.8648, allocations: 106.2 MB / 0.8835 GB, free: 77.3 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2635/1.128, allocations: 131.1 MB / 1.012 GB, free: 10 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003843/1.129, allocations: 79.94 kB / 1.012 GB, free: 9.922 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.01648/1.145, allocations: 2.266 MB / 1.014 GB, free: 7.613 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/1.145, allocations: 8 kB / 1.014 GB, free: 7.605 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.668e-05/1.146, allocations: 7.906 kB / 1.014 GB, free: 7.598 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/1.146, allocations: 171.1 kB / 1.014 GB, free: 7.391 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/1.146, allocations: 0 / 1.014 GB, free: 7.391 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/1.146, allocations: 0 / 1.014 GB, free: 7.391 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.947e-05/1.146, allocations: 7.938 kB / 1.014 GB, free: 7.383 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.758e-05/1.146, allocations: 33.61 kB / 1.014 GB, free: 7.344 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/1.146, allocations: 0 / 1.014 GB, free: 7.344 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/1.146, allocations: 0 / 1.014 GB, free: 7.344 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/1.146, allocations: 0 / 1.014 GB, free: 7.344 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/1.146, allocations: 134.2 kB / 1.014 GB, free: 7.176 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 6.174e-05/1.146, allocations: 26.58 kB / 1.014 GB, free: 7.141 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.256e-05/1.146, allocations: 4.859 kB / 1.014 GB, free: 7.133 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/1.146, allocations: 4.062 kB / 1.014 GB, free: 7.129 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/1.146, allocations: 30.56 kB / 1.014 GB, free: 7.09 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/1.146, allocations: 3.938 kB / 1.014 GB, free: 7.086 MB / 0.6667 GB Notification: Performance of matching and sorting (n=2): time 0.0001468/1.146, allocations: 37.61 kB / 1.014 GB, free: 7.043 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/1.146, allocations: 63.42 kB / 1.014 GB, free: 6.969 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.213e-05/1.147, allocations: 85 kB / 1.014 GB, free: 6.879 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/1.147, allocations: 25.7 kB / 1.014 GB, free: 6.848 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 4.013e-05/1.147, allocations: 80.14 kB / 1.014 GB, free: 6.766 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/1.147, allocations: 7.906 kB / 1.014 GB, free: 6.758 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-06/1.147, allocations: 0 / 1.014 GB, free: 6.758 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000136/1.147, allocations: 314.8 kB / 1.015 GB, free: 6.441 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.286e-05/1.147, allocations: 0 / 1.015 GB, free: 6.441 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.35e-05/1.147, allocations: 8.125 kB / 1.015 GB, free: 6.434 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.849e-05/1.147, allocations: 0 / 1.015 GB, free: 6.434 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/1.147, allocations: 0 / 1.015 GB, free: 6.434 MB / 0.6667 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.684e-05/1.147, allocations: 45.56 kB / 1.015 GB, free: 6.383 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/1.147, allocations: 8 kB / 1.015 GB, free: 6.375 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/1.147, allocations: 3.938 kB / 1.015 GB, free: 6.371 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/1.147, allocations: 0 / 1.015 GB, free: 6.371 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/1.147, allocations: 11.98 kB / 1.015 GB, free: 6.359 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000577/1.148, allocations: 0.5899 MB / 1.015 GB, free: 5.746 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.841e-05/1.148, allocations: 0 / 1.015 GB, free: 5.746 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/1.148, allocations: 0 / 1.015 GB, free: 5.746 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/1.148, allocations: 108.9 kB / 1.016 GB, free: 5.633 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/1.148, allocations: 4.031 kB / 1.016 GB, free: 5.629 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/1.148, allocations: 52.98 kB / 1.016 GB, free: 5.574 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/1.148, allocations: 3.984 kB / 1.016 GB, free: 5.57 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/1.148, allocations: 0 / 1.016 GB, free: 5.57 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/1.148, allocations: 0 / 1.016 GB, free: 5.57 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/1.148, allocations: 134.1 kB / 1.016 GB, free: 5.402 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/1.148, allocations: 4 kB / 1.016 GB, free: 5.398 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/1.149, allocations: 4 kB / 1.016 GB, free: 5.395 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/1.149, allocations: 4 kB / 1.016 GB, free: 5.391 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/1.149, allocations: 0 / 1.016 GB, free: 5.391 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004381/1.149, allocations: 0.5977 MB / 1.016 GB, free: 4.77 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.149, allocations: 0 / 1.016 GB, free: 4.77 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.93e-05/1.149, allocations: 65.09 kB / 1.016 GB, free: 4.688 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000267/1.149, allocations: 441.6 kB / 1.017 GB, free: 4.234 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.037e-05/1.15, allocations: 81.11 kB / 1.017 GB, free: 4.137 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/1.15, allocations: 3.984 kB / 1.017 GB, free: 4.133 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.501e-05/1.15, allocations: 0 / 1.017 GB, free: 4.133 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.03e-05/1.15, allocations: 3.906 kB / 1.017 GB, free: 4.129 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.421e-06/1.15, allocations: 0 / 1.017 GB, free: 4.129 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.618e-05/1.15, allocations: 79.28 kB / 1.017 GB, free: 4.051 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001078/1.151, allocations: 12 kB / 1.017 GB, free: 4.039 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002394/1.151, allocations: 117.7 kB / 1.017 GB, free: 3.914 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003045/1.151, allocations: 23.92 kB / 1.017 GB, free: 3.891 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/1.151, allocations: 0 / 1.017 GB, free: 3.891 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002016/1.152, allocations: 12 kB / 1.017 GB, free: 3.879 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/1.152, allocations: 11.86 kB / 1.017 GB, free: 3.867 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001992/1.152, allocations: 53.73 kB / 1.017 GB, free: 3.793 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003781/1.152, allocations: 0.6918 MB / 1.018 GB, free: 3.074 MB / 0.6667 GB Notification: Performance of SimCode: time 1.042e-06/1.152, allocations: 0 / 1.018 GB, free: 3.074 MB / 0.6667 GB