Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.0.0/package.mo): time 2.57/2.57, allocations: 284.8 MB / 292.1 MB, free: 9.93 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.001594/0.001594, allocations: 183.7 kB / 360.3 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.1 MB / 0.6187 GB, free: 3.328 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001268/0.001268, allocations: 88.03 kB / 0.7317 GB, free: 1.797 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.6342/0.6355, allocations: 121.4 MB / 0.8502 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.8691, allocations: 115.2 MB / 0.9628 GB, free: 56.97 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7312/1.6, allocations: 137.7 MB / 1.097 GB, free: 44.8 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/1.601, allocations: 79.44 kB / 1.097 GB, free: 44.8 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.01372/1.614, allocations: 2.825 MB / 1.1 GB, free: 44.32 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/1.615, allocations: 14.62 kB / 1.1 GB, free: 44.32 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/1.615, allocations: 6.031 kB / 1.1 GB, free: 44.32 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/1.615, allocations: 166.2 kB / 1.1 GB, free: 44.12 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/1.615, allocations: 0 / 1.1 GB, free: 44.12 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/1.615, allocations: 2.312 kB / 1.1 GB, free: 44.12 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.69e-05/1.615, allocations: 11.16 kB / 1.1 GB, free: 44.11 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.62e-05/1.615, allocations: 38.56 kB / 1.1 GB, free: 44.08 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/1.615, allocations: 0.5625 kB / 1.1 GB, free: 44.08 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/1.615, allocations: 0 / 1.1 GB, free: 44.08 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.443e-06/1.615, allocations: 3.906 kB / 1.1 GB, free: 44.08 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/1.615, allocations: 138 kB / 1.1 GB, free: 43.92 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/1.615, allocations: 30.94 kB / 1.1 GB, free: 43.9 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.218e-05/1.615, allocations: 17.7 kB / 1.1 GB, free: 43.89 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/1.615, allocations: 7.781 kB / 1.1 GB, free: 43.89 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/1.615, allocations: 34.5 kB / 1.1 GB, free: 43.84 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 1.513e-06/1.615, allocations: 0 / 1.1 GB, free: 43.84 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0006024/1.616, allocations: 284.3 kB / 1.101 GB, free: 43.59 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.128e-05/1.616, allocations: 51.41 kB / 1.101 GB, free: 43.52 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.418e-05/1.616, allocations: 94.52 kB / 1.101 GB, free: 43.43 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/1.616, allocations: 25.7 kB / 1.101 GB, free: 43.4 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 1.945e-05/1.616, allocations: 80.14 kB / 1.101 GB, free: 43.32 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.764e-05/1.616, allocations: 18.09 kB / 1.101 GB, free: 43.31 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/1.616, allocations: 3.938 kB / 1.101 GB, free: 43.3 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.761e-05/1.616, allocations: 316.6 kB / 1.101 GB, free: 42.99 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.102e-05/1.616, allocations: 13.59 kB / 1.101 GB, free: 42.99 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.952e-05/1.616, allocations: 8.75 kB / 1.101 GB, free: 42.99 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.996e-05/1.616, allocations: 12.56 kB / 1.101 GB, free: 42.99 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/1.616, allocations: 0 / 1.101 GB, free: 42.99 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001254/1.617, allocations: 57.25 kB / 1.101 GB, free: 42.96 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/1.617, allocations: 3.75 kB / 1.101 GB, free: 42.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/1.617, allocations: 0 / 1.101 GB, free: 42.96 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/1.617, allocations: 3.906 kB / 1.101 GB, free: 42.95 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.077e-05/1.617, allocations: 13.61 kB / 1.101 GB, free: 42.95 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/1.617, allocations: 0 / 1.101 GB, free: 42.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.964e-05/1.617, allocations: 5.688 kB / 1.101 GB, free: 42.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/1.617, allocations: 5.781 kB / 1.101 GB, free: 42.95 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 (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.576e-05/1.617, allocations: 108.8 kB / 1.102 GB, free: 42.84 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/1.617, allocations: 3.906 kB / 1.102 GB, free: 42.84 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/1.617, allocations: 69.61 kB / 1.102 GB, free: 42.8 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/1.617, allocations: 0 / 1.102 GB, free: 42.8 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/1.617, allocations: 0 / 1.102 GB, free: 42.8 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/1.617, allocations: 7.125 kB / 1.102 GB, free: 42.79 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/1.617, allocations: 293.2 kB / 1.102 GB, free: 42.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/1.618, allocations: 0.625 kB / 1.102 GB, free: 42.51 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/1.618, allocations: 15.2 kB / 1.102 GB, free: 42.51 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/1.618, allocations: 0 / 1.102 GB, free: 42.51 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/1.618, allocations: 0 / 1.102 GB, free: 42.51 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/1.618, allocations: 192 / 1.102 GB, free: 42.51 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.618, allocations: 11.69 kB / 1.102 GB, free: 42.5 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001948/1.618, allocations: 188.2 kB / 1.102 GB, free: 42.34 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002519/1.618, allocations: 0.559 MB / 1.103 GB, free: 41.81 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/1.618, allocations: 86.45 kB / 1.103 GB, free: 41.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/1.618, allocations: 7.828 kB / 1.103 GB, free: 41.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/1.618, allocations: 0 / 1.103 GB, free: 41.71 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/1.618, allocations: 3.875 kB / 1.103 GB, free: 41.71 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/1.618, allocations: 2.562 kB / 1.103 GB, free: 41.71 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.269e-05/1.618, allocations: 79.16 kB / 1.103 GB, free: 41.64 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001466/1.62, allocations: 29.64 kB / 1.103 GB, free: 41.63 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002687/1.62, allocations: 127.5 kB / 1.103 GB, free: 57.53 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000128/1.62, allocations: 26.81 kB / 1.103 GB, free: 57.53 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/1.62, allocations: 4 kB / 1.103 GB, free: 57.53 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.005e-05/1.62, allocations: 21.14 kB / 1.103 GB, free: 57.52 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000195/1.621, allocations: 4.297 kB / 1.103 GB, free: 57.52 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004013/1.621, allocations: 135.5 kB / 1.103 GB, free: 57.41 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003194/1.621, allocations: 0.6979 MB / 1.104 GB, free: 56.7 MB / 0.7292 GB Notification: Performance of SimCode: time 1.052e-06/1.621, allocations: 0 / 1.104 GB, free: 56.7 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_8_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)