Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.753/0.753, allocations: 141.8 MB / 149.1 MB, free: 1.285 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 197.2 kB / 181.9 MB, free: 0.5977 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.302/1.302, allocations: 221.3 MB / 436 MB, free: 5.371 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 100.5 kB / 0.507 GB, free: 2.035 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001823/0.001823, allocations: 280.1 kB / 0.5884 GB, free: 47.18 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3566/0.3585, allocations: 89.64 MB / 0.676 GB, free: 59.42 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.5315, allocations: 82.77 MB / 0.7568 GB, free: 0.5234 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1483/0.6799, allocations: 108.6 MB / 0.8628 GB, free: 3.805 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.6802, allocations: 77.98 kB / 0.8629 GB, free: 3.73 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.008946/0.6892, allocations: 2.881 MB / 0.8657 GB, free: 0.8008 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.6892, allocations: 12 kB / 0.8657 GB, free: 0.7891 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.6893, allocations: 3.906 kB / 0.8657 GB, free: 0.7852 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.6894, allocations: 167 kB / 0.8659 GB, free: 0.582 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.6894, allocations: 4 kB / 0.8659 GB, free: 0.5781 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.6894, allocations: 0 / 0.8659 GB, free: 0.5781 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.632e-05/0.6895, allocations: 4 kB / 0.8659 GB, free: 0.5742 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.056e-05/0.6896, allocations: 41.69 kB / 0.8659 GB, free: 0.5273 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.6896, allocations: 4 kB / 0.8659 GB, free: 0.5234 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.6896, allocations: 7.844 kB / 0.8659 GB, free: 0.5156 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.6896, allocations: 0 / 0.8659 GB, free: 0.5156 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000175/0.6898, allocations: 134.3 kB / 0.8661 GB, free: 356 kB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.6899, allocations: 25.72 kB / 0.8661 GB, free: 324 kB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.349e-05/0.69, allocations: 12.95 kB / 0.8661 GB, free: 308 kB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.69, allocations: 3.984 kB / 0.8661 GB, free: 304 kB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.69, allocations: 46.56 kB / 0.8662 GB, free: 248 kB / 0.5419 GB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.6901, allocations: 0 / 0.8662 GB, free: 248 kB / 0.5419 GB Notification: Performance of matching and sorting (n=6): time 0.2196/0.9096, allocations: 276 kB / 0.8664 GB, free: 169 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.118e-05/0.9097, allocations: 51.41 kB / 0.8665 GB, free: 169 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.985e-05/0.9098, allocations: 89.73 kB / 0.8666 GB, free: 168.9 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.9098, allocations: 25.7 kB / 0.8666 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 1.745e-05/0.9098, allocations: 82.52 kB / 0.8667 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.9098, allocations: 26.08 kB / 0.8667 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.9099, allocations: 0 / 0.8667 GB, free: 168.8 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 4.118e-05/0.9099, allocations: 310.8 kB / 0.867 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.966e-05/0.9099, allocations: 18.11 kB / 0.867 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.65e-05/0.9099, allocations: 6.969 kB / 0.867 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.78e-05/0.91, allocations: 14.48 kB / 0.867 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.91, allocations: 0 / 0.867 GB, free: 168.5 MB / 0.5419 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001081/0.9101, allocations: 66.12 kB / 0.8671 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.9101, allocations: 3.875 kB / 0.8671 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.9101, allocations: 0 / 0.8671 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.9102, allocations: 3.656 kB / 0.8671 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.638e-05/0.9102, allocations: 14.84 kB / 0.8671 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.9102, allocations: 3.234 kB / 0.8671 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.219e-05/0.9103, allocations: 0 / 0.8671 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.9103, allocations: 0 / 0.8671 GB, free: 168.4 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.631e-05/0.9103, allocations: 104.9 kB / 0.8672 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.9104, allocations: 3.906 kB / 0.8672 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.9105, allocations: 70.27 kB / 0.8673 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.9105, allocations: 4.906 kB / 0.8673 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.9105, allocations: 0 / 0.8673 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.9105, allocations: 0 / 0.8673 GB, free: 168.3 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.9108, allocations: 290.2 kB / 0.8676 GB, free: 168 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.9108, allocations: 0 / 0.8676 GB, free: 168 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.623e-05/0.9109, allocations: 11.58 kB / 0.8676 GB, free: 168 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.9109, allocations: 7.469 kB / 0.8676 GB, free: 168 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.9109, allocations: 0 / 0.8676 GB, free: 168 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.9109, allocations: 3.469 kB / 0.8676 GB, free: 168 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.9109, allocations: 0 / 0.8676 GB, free: 168 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001422/0.9111, allocations: 186 kB / 0.8678 GB, free: 167.8 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001824/0.9113, allocations: 0.574 MB / 0.8683 GB, free: 167.3 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.9113, allocations: 82.8 kB / 0.8684 GB, free: 167.2 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.9113, allocations: 7.547 kB / 0.8684 GB, free: 167.2 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.73e-05/0.9114, allocations: 0 / 0.8684 GB, free: 167.2 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.492e-05/0.9115, allocations: 2.812 kB / 0.8684 GB, free: 167.2 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.9115, allocations: 3.625 kB / 0.8684 GB, free: 167.2 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.318e-05/0.9115, allocations: 81.5 kB / 0.8685 GB, free: 167.1 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008858/0.9124, allocations: 31.28 kB / 0.8685 GB, free: 167.1 MB / 0.5419 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.0002155/0.9126, allocations: 126 kB / 0.8686 GB, free: 167.1 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 8.269e-05/0.9127, allocations: 32.19 kB / 0.8687 GB, free: 167.1 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.9127, allocations: 0 / 0.8687 GB, free: 167.1 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 2.176e-05/0.9127, allocations: 14.88 kB / 0.8687 GB, free: 167.1 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001666/0.9129, allocations: 12.08 kB / 0.8687 GB, free: 167.1 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.9133, allocations: 134 kB / 0.8688 GB, free: 167 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.9134, allocations: 0.6912 MB / 0.8695 GB, free: 166.3 MB / 0.5419 GB Notification: Performance of SimCode: time 2.51e-07/0.9134, allocations: 0 / 0.8695 GB, free: 166.3 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)