Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 191.8 kB / 7.808 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5466/0.5466, allocations: 90.85 MB / 99.07 MB, free: 14.97 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 221.4 MB / 342.8 MB, free: 5.293 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 98.98 kB / 415.5 MB, free: 6.477 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1883/0.1894, allocations: 78.46 MB / 494 MB, free: 8.008 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.5949, allocations: 72.29 MB / 0.553 GB, free: 73.2 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1143/0.7093, allocations: 102.3 MB / 0.6529 GB, free: 7.68 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.7096, allocations: 89.89 kB / 0.653 GB, free: 7.594 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.01326/0.7229, allocations: 4.332 MB / 0.6572 GB, free: 3.27 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.7229, allocations: 8.625 kB / 0.6572 GB, free: 3.262 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.723, allocations: 7.906 kB / 0.6572 GB, free: 3.254 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.7231, allocations: 171.8 kB / 0.6574 GB, free: 3.047 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.7231, allocations: 0 / 0.6574 GB, free: 3.047 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.7231, allocations: 8.562 kB / 0.6574 GB, free: 3.039 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.771e-05/0.7232, allocations: 28.97 kB / 0.6574 GB, free: 3.012 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.7234, allocations: 61.67 kB / 0.6575 GB, free: 2.945 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.7234, allocations: 1.062 kB / 0.6575 GB, free: 2.945 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.7234, allocations: 4 kB / 0.6575 GB, free: 2.941 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.7234, allocations: 0 / 0.6575 GB, free: 2.941 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004632/0.7239, allocations: 300.4 kB / 0.6578 GB, free: 2.613 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.007e-05/0.724, allocations: 41.08 kB / 0.6578 GB, free: 2.57 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.38e-05/0.724, allocations: 16.86 kB / 0.6578 GB, free: 2.551 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.724, allocations: 4 kB / 0.6579 GB, free: 2.547 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.7241, allocations: 36.88 kB / 0.6579 GB, free: 2.504 MB / 474.7 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.7241, allocations: 3.938 kB / 0.6579 GB, free: 2.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008544/0.7249, allocations: 0.5276 MB / 0.6584 GB, free: 1.883 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.725, allocations: 52.56 kB / 0.6585 GB, free: 1.82 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.95e-05/0.725, allocations: 93 kB / 0.6585 GB, free: 1.723 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.7251, allocations: 29.69 kB / 0.6586 GB, free: 1.688 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.96e-05/0.7251, allocations: 92.58 kB / 0.6587 GB, free: 1.594 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.332e-05/0.7251, allocations: 35.95 kB / 0.6587 GB, free: 1.559 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-06/0.7252, allocations: 1.438 kB / 0.6587 GB, free: 1.559 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.456e-05/0.7253, allocations: 318.8 kB / 0.659 GB, free: 1.238 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.832e-05/0.7253, allocations: 16 kB / 0.659 GB, free: 1.223 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.649e-05/0.7253, allocations: 24.67 kB / 0.659 GB, free: 1.199 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.406e-05/0.7254, allocations: 20.5 kB / 0.6591 GB, free: 1.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.7254, allocations: 0 / 0.6591 GB, free: 1.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000144/0.7255, allocations: 101 kB / 0.6592 GB, free: 1.078 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/0.7256, allocations: 4 kB / 0.6592 GB, free: 1.074 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.7256, allocations: 0.6875 kB / 0.6592 GB, free: 1.074 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.7256, allocations: 7.906 kB / 0.6592 GB, free: 1.066 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.7258, allocations: 25.14 kB / 0.6592 GB, free: 1.043 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.7258, allocations: 4.75 kB / 0.6592 GB, free: 1.039 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.787e-05/0.7259, allocations: 9.328 kB / 0.6592 GB, free: 1.031 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.7259, allocations: 4 kB / 0.6592 GB, free: 1.027 MB / 474.7 MB 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 (13): * Single equations (assignments): 13 * 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 6.406e-05/0.726, allocations: 113.4 kB / 0.6593 GB, free: 0.9102 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.146e-05/0.726, allocations: 7.906 kB / 0.6593 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000198/0.7262, allocations: 99.5 kB / 0.6594 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.7262, allocations: 4 kB / 0.6594 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.7262, allocations: 0 / 0.6594 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.7262, allocations: 0 / 0.6594 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003243/0.7266, allocations: 334.9 kB / 0.6597 GB, free: 436 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.7266, allocations: 0 / 0.6597 GB, free: 436 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.7268, allocations: 31.98 kB / 0.6598 GB, free: 404 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.7268, allocations: 0 / 0.6598 GB, free: 404 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.7268, allocations: 4 kB / 0.6598 GB, free: 400 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.7268, allocations: 1.625 kB / 0.6598 GB, free: 400 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.7268, allocations: 0 / 0.6598 GB, free: 400 kB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002272/0.727, allocations: 213.5 kB / 0.66 GB, free: 172 kB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003597/0.7274, allocations: 0.6171 MB / 0.6606 GB, free: 15.53 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.61e-05/0.7275, allocations: 85.02 kB / 0.6607 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.7275, allocations: 0 / 0.6607 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.7276, allocations: 7.984 kB / 0.6607 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.984e-05/0.7277, allocations: 4 kB / 0.6607 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.7277, allocations: 12.05 kB / 0.6607 GB, free: 15.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.135e-05/0.7277, allocations: 83.28 kB / 0.6608 GB, free: 15.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008796/0.7286, allocations: 39.94 kB / 0.6608 GB, free: 15.29 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0002107/0.7288, allocations: 143.3 kB / 0.6609 GB, free: 15.14 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.729, allocations: 55.94 kB / 0.661 GB, free: 15.08 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.729, allocations: 0 / 0.661 GB, free: 15.08 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 4.896e-05/0.729, allocations: 39.92 kB / 0.661 GB, free: 15.04 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001744/0.7292, allocations: 13.33 kB / 0.661 GB, free: 15.03 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000442/0.7297, allocations: 226.1 kB / 0.6613 GB, free: 14.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/0.7299, allocations: 0.7192 MB / 0.662 GB, free: 14.05 MB / 490.7 MB Notification: Performance of SimCode: time 2.7e-07/0.73, allocations: 0 / 0.662 GB, free: 14.05 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)