Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.003193/0.003193, allocations: 182.9 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6942/0.6942, allocations: 133.5 MB / 141.4 MB, free: 15.7 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 221.3 MB / 395 MB, free: 10.18 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001047, allocations: 101.6 kB / 477.8 MB, free: 10.81 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4512/0.4523, allocations: 88.43 MB / 0.5529 GB, free: 88.95 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.6337, allocations: 82.3 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5341/1.168, allocations: 111.5 MB / 0.7422 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/1.168, allocations: 79.06 kB / 0.7422 GB, free: 10.39 MB / 0.4948 GB 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.01317/1.181, allocations: 4.524 MB / 0.7467 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.618e-05/1.181, allocations: 8.344 kB / 0.7467 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/1.181, allocations: 11.59 kB / 0.7467 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/1.182, allocations: 168.3 kB / 0.7468 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/1.182, allocations: 0 / 0.7468 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/1.182, allocations: 7.719 kB / 0.7468 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001105/1.182, allocations: 20.56 kB / 0.7469 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/1.182, allocations: 47.67 kB / 0.7469 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/1.182, allocations: 0 / 0.7469 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/1.182, allocations: 3.844 kB / 0.7469 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/1.182, allocations: 0 / 0.7469 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002099/1.182, allocations: 141.4 kB / 0.747 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 6.741e-05/1.182, allocations: 42.08 kB / 0.7471 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.595e-05/1.182, allocations: 23.38 kB / 0.7471 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/1.182, allocations: 6.75 kB / 0.7471 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/1.182, allocations: 35.11 kB / 0.7471 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/1.182, allocations: 0 / 0.7471 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.001199/1.184, allocations: 0.509 MB / 0.7476 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/1.184, allocations: 51.41 kB / 0.7477 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/1.184, allocations: 97.33 kB / 0.7478 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/1.184, allocations: 26.22 kB / 0.7478 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.328e-05/1.184, allocations: 84.08 kB / 0.7479 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.426e-05/1.184, allocations: 38.45 kB / 0.7479 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/1.184, allocations: 3.812 kB / 0.7479 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000168/1.184, allocations: 316 kB / 0.7482 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.624e-05/1.184, allocations: 22.75 kB / 0.7483 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.036e-05/1.184, allocations: 17.78 kB / 0.7483 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.775e-05/1.184, allocations: 22.44 kB / 0.7483 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-07/1.184, allocations: 0 / 0.7483 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001399/1.184, allocations: 86.5 kB / 0.7484 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/1.184, allocations: 3.812 kB / 0.7484 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/1.184, allocations: 0.7031 kB / 0.7484 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/1.184, allocations: 3.875 kB / 0.7484 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/1.185, allocations: 22.27 kB / 0.7484 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/1.185, allocations: 0 / 0.7484 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.729e-05/1.185, allocations: 4.625 kB / 0.7484 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/1.185, allocations: 3.719 kB / 0.7484 GB, free: 24.18 MB / 0.5105 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 (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.539e-05/1.185, allocations: 117.3 kB / 0.7485 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/1.185, allocations: 0 / 0.7485 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/1.185, allocations: 91.41 kB / 0.7486 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/1.185, allocations: 3.906 kB / 0.7486 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/1.185, allocations: 0.5625 kB / 0.7486 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/1.185, allocations: 0.5156 kB / 0.7486 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/1.185, allocations: 318.8 kB / 0.7489 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/1.185, allocations: 4.75 kB / 0.7489 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/1.186, allocations: 21.59 kB / 0.7489 GB, free: 23.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/1.186, allocations: 3.906 kB / 0.7489 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/1.186, allocations: 4.578 kB / 0.749 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.186, allocations: 7.969 kB / 0.749 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.186, allocations: 0.7969 kB / 0.749 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002343/1.186, allocations: 209.1 kB / 0.7492 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003749/1.186, allocations: 0.6004 MB / 0.7497 GB, free: 23.09 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/1.186, allocations: 81.88 kB / 0.7498 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/1.186, allocations: 7.781 kB / 0.7498 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/1.186, allocations: 0.6562 kB / 0.7498 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/1.186, allocations: 6.703 kB / 0.7498 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/1.186, allocations: 3.812 kB / 0.7498 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.857e-05/1.187, allocations: 79.8 kB / 0.7499 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008291/1.187, allocations: 52.33 kB / 0.75 GB, free: 22.89 MB / 0.5105 GB 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.0002668/1.188, allocations: 133.4 kB / 0.7501 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001428/1.188, allocations: 54.25 kB / 0.7501 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.188, allocations: 3.938 kB / 0.7502 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.62e-05/1.188, allocations: 26.81 kB / 0.7502 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/1.188, allocations: 8.141 kB / 0.7502 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005618/1.189, allocations: 217.3 kB / 0.7504 GB, free: 22.62 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005038/1.189, allocations: 0.7122 MB / 0.7511 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of SimCode: time 2.41e-07/1.189, allocations: 3.938 kB / 0.7511 GB, free: 21.91 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)