Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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/BuildSysPro 3.5.0/package.mo): time 0.7286/0.7286, allocations: 127.4 MB / 134.6 MB, free: 4.074 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001417/0.001417, allocations: 181.3 kB / 164.4 MB, free: 6.875 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.1 MB / 399.1 MB, free: 6.137 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001086, allocations: 85.67 kB / 476.3 MB, free: 8.887 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3716/0.3727, allocations: 82.9 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.5844, allocations: 76.76 MB / 0.621 GB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.506/1.09, allocations: 102.8 MB / 0.7214 GB, free: 9.508 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/1.091, allocations: 79.94 kB / 0.7214 GB, free: 9.43 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01482/1.106, allocations: 4.8 MB / 0.7261 GB, free: 4.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/1.106, allocations: 12 kB / 0.7261 GB, free: 4.578 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.681e-05/1.106, allocations: 0 / 0.7261 GB, free: 4.578 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/1.106, allocations: 174.9 kB / 0.7263 GB, free: 4.367 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/1.106, allocations: 0 / 0.7263 GB, free: 4.367 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/1.106, allocations: 7.984 kB / 0.7263 GB, free: 4.359 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.919e-05/1.106, allocations: 15.98 kB / 0.7263 GB, free: 4.344 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.369e-05/1.106, allocations: 49.69 kB / 0.7264 GB, free: 4.289 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/1.106, allocations: 0 / 0.7264 GB, free: 4.289 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/1.106, allocations: 3.906 kB / 0.7264 GB, free: 4.285 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/1.106, allocations: 0 / 0.7264 GB, free: 4.285 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000198/1.107, allocations: 138.2 kB / 0.7265 GB, free: 4.113 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.007e-05/1.107, allocations: 33.72 kB / 0.7265 GB, free: 4.074 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.861e-05/1.107, allocations: 32.78 kB / 0.7266 GB, free: 4.039 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000284/1.107, allocations: 101.1 kB / 0.7267 GB, free: 3.922 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/1.107, allocations: 34.56 kB / 0.7267 GB, free: 3.879 MB / 490.7 MB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/1.107, allocations: 0 / 0.7267 GB, free: 3.879 MB / 490.7 MB Notification: Performance of matching and sorting (n=11): time 0.004158/1.111, allocations: 0.9147 MB / 0.7276 GB, free: 2.871 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/1.111, allocations: 55.41 kB / 0.7277 GB, free: 2.805 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.02e-05/1.111, allocations: 92.98 kB / 0.7277 GB, free: 2.707 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/1.111, allocations: 25.7 kB / 0.7278 GB, free: 2.676 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.249e-05/1.111, allocations: 88.27 kB / 0.7279 GB, free: 2.586 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.096e-05/1.111, allocations: 35.45 kB / 0.7279 GB, free: 2.551 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.169e-05/1.111, allocations: 0.9375 kB / 0.7279 GB, free: 2.551 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/1.112, allocations: 318.8 kB / 0.7282 GB, free: 2.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.713e-05/1.112, allocations: 24 kB / 0.7282 GB, free: 2.207 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.772e-05/1.112, allocations: 40.67 kB / 0.7283 GB, free: 2.168 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.104e-05/1.112, allocations: 28.86 kB / 0.7283 GB, free: 2.141 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/1.112, allocations: 0 / 0.7283 GB, free: 2.141 MB / 490.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002331/1.112, allocations: 108.3 kB / 0.7284 GB, free: 2.031 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/1.112, allocations: 4 kB / 0.7284 GB, free: 2.027 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/1.112, allocations: 4 kB / 0.7284 GB, free: 2.023 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/1.112, allocations: 3.906 kB / 0.7284 GB, free: 2.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/1.113, allocations: 52.05 kB / 0.7284 GB, free: 1.969 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/1.113, allocations: 7.922 kB / 0.7285 GB, free: 1.961 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/1.113, allocations: 27.98 kB / 0.7285 GB, free: 1.934 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/1.113, allocations: 7.984 kB / 0.7285 GB, free: 1.926 MB / 490.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 9.771e-05/1.113, allocations: 104.9 kB / 0.7286 GB, free: 1.816 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/1.113, allocations: 7.906 kB / 0.7286 GB, free: 1.809 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.054e-05/1.113, allocations: 8.062 kB / 0.7286 GB, free: 1.805 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/1.113, allocations: 0 / 0.7286 GB, free: 1.805 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/1.113, allocations: 8 kB / 0.7286 GB, free: 1.797 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/1.113, allocations: 3.938 kB / 0.7286 GB, free: 1.793 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005919/1.114, allocations: 355 kB / 0.729 GB, free: 1.402 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/1.114, allocations: 0 / 0.729 GB, free: 1.402 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003911/1.114, allocations: 51.89 kB / 0.729 GB, free: 1.352 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/1.114, allocations: 7.984 kB / 0.729 GB, free: 1.344 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/1.114, allocations: 4 kB / 0.729 GB, free: 1.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/1.114, allocations: 0 / 0.729 GB, free: 1.34 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/1.114, allocations: 0 / 0.729 GB, free: 1.34 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003772/1.115, allocations: 243.4 kB / 0.7292 GB, free: 1.086 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005536/1.115, allocations: 0.6656 MB / 0.7299 GB, free: 412 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.829e-05/1.115, allocations: 81.11 kB / 0.73 GB, free: 312 kB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/1.115, allocations: 0 / 0.73 GB, free: 312 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/1.116, allocations: 27.97 kB / 0.73 GB, free: 284 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/1.116, allocations: 15.89 kB / 0.73 GB, free: 268 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/1.116, allocations: 8.062 kB / 0.73 GB, free: 260 kB / 490.7 MB Notification: Performance of sort global known variables: time 3.337e-05/1.116, allocations: 75.28 kB / 0.7301 GB, free: 184 kB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008652/1.117, allocations: 23.98 kB / 0.7301 GB, free: 160 kB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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/1.117, allocations: 107.2 kB / 0.7302 GB, free: 40 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002816/1.117, allocations: 79.97 kB / 0.7303 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.117, allocations: 0 / 0.7303 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 8.387e-05/1.117, allocations: 43.88 kB / 0.7303 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/1.117, allocations: 8.094 kB / 0.7303 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/1.119, allocations: 409.3 kB / 0.7307 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005198/1.12, allocations: 0.7231 MB / 0.7314 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of SimCode: time 6.81e-07/1.12, allocations: 0 / 0.7314 GB, free: 14.74 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)