Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.598/1.598, allocations: 289.8 MB / 297.1 MB, free: 6.715 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001363/0.001363, allocations: 177.3 kB / 366.3 MB, free: 2.031 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.725/1.725, allocations: 205.2 MB / 0.6256 GB, free: 5.852 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 91.3 kB / 0.7395 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3291/0.3301, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8466/1.177, allocations: 116.3 MB / 0.9727 GB, free: 68.07 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/1.389, allocations: 138.6 MB / 1.108 GB, free: 9.93 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003568/1.389, allocations: 84.5 kB / 1.108 GB, free: 9.848 MB / 0.7136 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.007908/1.397, allocations: 2.273 MB / 1.11 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/1.397, allocations: 8 kB / 1.11 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/1.397, allocations: 4 kB / 1.11 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/1.398, allocations: 167 kB / 1.11 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/1.398, allocations: 0 / 1.11 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/1.398, allocations: 0 / 1.11 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.902e-05/1.398, allocations: 7.938 kB / 1.11 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.333e-05/1.398, allocations: 29.7 kB / 1.11 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/1.398, allocations: 0 / 1.11 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/1.398, allocations: 0 / 1.11 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/1.398, allocations: 4 kB / 1.11 GB, free: 7.281 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002063/1.398, allocations: 144.2 kB / 1.111 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.119e-05/1.398, allocations: 18.58 kB / 1.111 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.18e-05/1.398, allocations: 4.859 kB / 1.111 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/1.398, allocations: 12.05 kB / 1.111 GB, free: 7.059 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/1.398, allocations: 30.56 kB / 1.111 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/1.398, allocations: 4 kB / 1.111 GB, free: 7.016 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.0001925/1.398, allocations: 37.64 kB / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/1.398, allocations: 51.41 kB / 1.111 GB, free: 6.91 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.538e-05/1.399, allocations: 92.92 kB / 1.111 GB, free: 6.812 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/1.399, allocations: 25.7 kB / 1.111 GB, free: 6.781 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.064e-05/1.399, allocations: 84.14 kB / 1.111 GB, free: 6.695 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/1.399, allocations: 7.906 kB / 1.111 GB, free: 6.688 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/1.399, allocations: 0 / 1.111 GB, free: 6.688 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002151/1.399, allocations: 315 kB / 1.111 GB, free: 6.371 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.034e-05/1.399, allocations: 0 / 1.111 GB, free: 6.371 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.08e-05/1.399, allocations: 4 kB / 1.111 GB, free: 6.367 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.713e-05/1.399, allocations: 0 / 1.111 GB, free: 6.367 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/1.399, allocations: 0 / 1.111 GB, free: 6.367 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001685/1.399, allocations: 49.59 kB / 1.111 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/1.399, allocations: 11.94 kB / 1.111 GB, free: 6.301 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/1.399, allocations: 0 / 1.111 GB, free: 6.301 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/1.399, allocations: 96 / 1.111 GB, free: 6.301 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/1.399, allocations: 14.81 kB / 1.111 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004924/1.4, allocations: 0.5898 MB / 1.112 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.969e-05/1.4, allocations: 0 / 1.112 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/1.4, allocations: 0 / 1.112 GB, free: 5.676 MB / 0.7136 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 0.0001133/1.4, allocations: 101 kB / 1.112 GB, free: 5.57 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/1.4, allocations: 12.03 kB / 1.112 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/1.4, allocations: 48.94 kB / 1.112 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/1.4, allocations: 0 / 1.112 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/1.4, allocations: 0 / 1.112 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.4, allocations: 0 / 1.112 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/1.4, allocations: 130.2 kB / 1.112 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.401, allocations: 0 / 1.112 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.665e-05/1.401, allocations: 8 kB / 1.112 GB, free: 5.328 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/1.401, allocations: 0 / 1.112 GB, free: 5.328 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/1.401, allocations: 7.938 kB / 1.112 GB, free: 5.32 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003603/1.401, allocations: 0.586 MB / 1.113 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.401, allocations: 0 / 1.113 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.135e-05/1.401, allocations: 65.02 kB / 1.113 GB, free: 4.629 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002186/1.401, allocations: 445.6 kB / 1.113 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/1.401, allocations: 81.11 kB / 1.113 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/1.401, allocations: 1.781 kB / 1.113 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.016e-05/1.401, allocations: 3.984 kB / 1.113 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.676e-05/1.401, allocations: 3.938 kB / 1.113 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/1.401, allocations: 4 kB / 1.113 GB, free: 4.062 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.941e-05/1.401, allocations: 83.31 kB / 1.113 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008212/1.402, allocations: 8 kB / 1.113 GB, free: 3.973 MB / 0.7136 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.0002407/1.403, allocations: 121.8 kB / 1.114 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001781/1.403, allocations: 19.92 kB / 1.114 GB, free: 3.824 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.403, allocations: 0 / 1.114 GB, free: 3.824 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.322e-05/1.403, allocations: 12.16 kB / 1.114 GB, free: 3.812 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/1.403, allocations: 4.062 kB / 1.114 GB, free: 3.809 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002322/1.403, allocations: 55.92 kB / 1.114 GB, free: 3.73 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004459/1.404, allocations: 0.6841 MB / 1.114 GB, free: 3.02 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/1.404, allocations: 0 / 1.114 GB, free: 3.02 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)