Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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/BuildingSystems 2.0.0-master/package.mo): time 0.7664/0.7664, allocations: 141.8 MB / 149.1 MB, free: 11.36 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001147, allocations: 190.6 kB / 182 MB, free: 8.133 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 221.4 MB / 436 MB, free: 204 kB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 99.95 kB / 0.507 GB, free: 9.258 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001871/0.001871, allocations: 289.2 kB / 0.5885 GB, free: 6.07 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4817/0.4836, allocations: 89.63 MB / 0.676 GB, free: 167.3 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.6587, allocations: 82.78 MB / 0.7568 GB, free: 115.8 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1252/0.7839, allocations: 108.7 MB / 0.8629 GB, free: 7.043 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.7842, allocations: 82.03 kB / 0.863 GB, free: 6.965 MB / 0.5419 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.01062/0.7948, allocations: 4.025 MB / 0.867 GB, free: 2.891 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.7949, allocations: 15.94 kB / 0.867 GB, free: 2.875 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.7949, allocations: 4 kB / 0.867 GB, free: 2.871 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.287e-05/0.795, allocations: 163 kB / 0.8671 GB, free: 2.672 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.7951, allocations: 4 kB / 0.8671 GB, free: 2.668 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.7951, allocations: 0 / 0.8671 GB, free: 2.668 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.807e-05/0.7952, allocations: 11.98 kB / 0.8671 GB, free: 2.656 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.289e-05/0.7952, allocations: 37.7 kB / 0.8672 GB, free: 2.613 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.7952, allocations: 4 kB / 0.8672 GB, free: 2.609 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.7953, allocations: 0 / 0.8672 GB, free: 2.609 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.7953, allocations: 0 / 0.8672 GB, free: 2.609 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.7954, allocations: 138.1 kB / 0.8673 GB, free: 2.438 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.7956, allocations: 37.62 kB / 0.8673 GB, free: 2.395 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.986e-05/0.7956, allocations: 12.86 kB / 0.8674 GB, free: 2.379 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.7956, allocations: 8 kB / 0.8674 GB, free: 2.371 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.7957, allocations: 30.56 kB / 0.8674 GB, free: 2.332 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.7957, allocations: 0 / 0.8674 GB, free: 2.332 MB / 0.5419 GB Notification: Performance of matching and sorting (n=6): time 0.0004601/0.7961, allocations: 286.2 kB / 0.8677 GB, free: 2 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/0.7962, allocations: 55.39 kB / 0.8677 GB, free: 1.934 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.401e-05/0.7962, allocations: 93 kB / 0.8678 GB, free: 1.836 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 9.387e-06/0.7963, allocations: 29.7 kB / 0.8678 GB, free: 1.801 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 1.326e-05/0.7963, allocations: 80.14 kB / 0.8679 GB, free: 1.719 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.7963, allocations: 15.81 kB / 0.8679 GB, free: 1.703 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.7963, allocations: 0 / 0.8679 GB, free: 1.703 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 5.008e-05/0.7964, allocations: 318.7 kB / 0.8682 GB, free: 1.383 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.983e-05/0.7964, allocations: 12 kB / 0.8682 GB, free: 1.371 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.575e-05/0.7964, allocations: 4 kB / 0.8683 GB, free: 1.367 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.356e-05/0.7964, allocations: 12 kB / 0.8683 GB, free: 1.355 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/0.7964, allocations: 0 / 0.8683 GB, free: 1.355 MB / 0.5419 GB Notification: Performance of matching and sorting (n=7) (initialization): time 7.561e-05/0.7965, allocations: 62.06 kB / 0.8683 GB, free: 1.289 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.7965, allocations: 4 kB / 0.8683 GB, free: 1.285 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.7965, allocations: 3.938 kB / 0.8683 GB, free: 1.281 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.7966, allocations: 4 kB / 0.8683 GB, free: 1.277 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.207e-05/0.7966, allocations: 15.92 kB / 0.8683 GB, free: 1.262 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.7966, allocations: 3.906 kB / 0.8684 GB, free: 1.258 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.7967, allocations: 0 / 0.8684 GB, free: 1.258 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.7967, allocations: 4 kB / 0.8684 GB, free: 1.254 MB / 0.5419 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 4.422e-05/0.7967, allocations: 101 kB / 0.8685 GB, free: 1.148 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/0.7967, allocations: 15.89 kB / 0.8685 GB, free: 1.133 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.7969, allocations: 69.67 kB / 0.8685 GB, free: 1.062 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.7969, allocations: 0 / 0.8685 GB, free: 1.062 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.7969, allocations: 0 / 0.8685 GB, free: 1.062 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.7969, allocations: 0 / 0.8685 GB, free: 1.062 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.7971, allocations: 283.9 kB / 0.8688 GB, free: 0.7383 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.7971, allocations: 4 kB / 0.8688 GB, free: 0.7344 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.018e-05/0.7972, allocations: 8 kB / 0.8688 GB, free: 0.7266 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.7972, allocations: 0 / 0.8688 GB, free: 0.7266 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.7972, allocations: 8.031 kB / 0.8688 GB, free: 0.7188 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.7972, allocations: 4.125 kB / 0.8688 GB, free: 0.7148 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7972, allocations: 240 / 0.8688 GB, free: 0.7148 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001375/0.7974, allocations: 194 kB / 0.869 GB, free: 0.5 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002268/0.7976, allocations: 0.5651 MB / 0.8696 GB, free: 15.9 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.704e-05/0.7977, allocations: 92.94 kB / 0.8697 GB, free: 15.79 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.7977, allocations: 0 / 0.8697 GB, free: 15.79 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.938e-05/0.7978, allocations: 0 / 0.8697 GB, free: 15.79 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.475e-05/0.7978, allocations: 4 kB / 0.8697 GB, free: 15.79 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-06/0.7978, allocations: 4 kB / 0.8697 GB, free: 15.79 MB / 0.5575 GB Notification: Performance of sort global known variables: time 3.783e-05/0.7979, allocations: 87.33 kB / 0.8697 GB, free: 15.7 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0009281/0.7988, allocations: 27.94 kB / 0.8698 GB, free: 15.67 MB / 0.5575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0002173/0.799, allocations: 123.2 kB / 0.8699 GB, free: 15.54 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 9.775e-05/0.7991, allocations: 31.98 kB / 0.8699 GB, free: 15.51 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.7991, allocations: 3.938 kB / 0.8699 GB, free: 15.5 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 2.459e-05/0.7992, allocations: 16 kB / 0.8699 GB, free: 15.49 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.7993, allocations: 3.906 kB / 0.8699 GB, free: 15.48 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003524/0.7997, allocations: 145.9 kB / 0.8701 GB, free: 15.32 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/0.8, allocations: 0.6919 MB / 0.8708 GB, free: 14.6 MB / 0.5575 GB Notification: Performance of SimCode: time 2.4e-07/0.8, allocations: 0 / 0.8708 GB, free: 14.6 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)