Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/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_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_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.00416/0.00416, allocations: 181.5 kB / 7.456 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7024/0.7024, allocations: 133.5 MB / 141.4 MB, free: 15.69 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.539/1.539, allocations: 221.3 MB / 395 MB, free: 10.23 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.001089/0.001089, allocations: 95.97 kB / 477.8 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4733/0.4744, allocations: 88.44 MB / 0.5529 GB, free: 89.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.6774, allocations: 82.3 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5946/1.272, allocations: 112.1 MB / 0.7428 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/1.272, allocations: 83.8 kB / 0.7429 GB, free: 10.56 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.01278/1.285, allocations: 4.338 MB / 0.7471 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/1.285, allocations: 7.719 kB / 0.7471 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.177e-05/1.285, allocations: 7.75 kB / 0.7471 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/1.285, allocations: 164.2 kB / 0.7473 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/1.285, allocations: 0 / 0.7473 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/1.285, allocations: 8.391 kB / 0.7473 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.898e-05/1.285, allocations: 23.78 kB / 0.7473 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/1.286, allocations: 69.12 kB / 0.7474 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/1.286, allocations: 4.453 kB / 0.7474 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/1.286, allocations: 0 / 0.7474 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/1.286, allocations: 0 / 0.7474 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/1.286, allocations: 306.1 kB / 0.7477 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 6.552e-05/1.286, allocations: 33.34 kB / 0.7477 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.279e-05/1.286, allocations: 20.31 kB / 0.7477 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/1.286, allocations: 6.875 kB / 0.7477 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/1.286, allocations: 31.08 kB / 0.7478 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/1.286, allocations: 0 / 0.7478 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0009339/1.287, allocations: 0.5231 MB / 0.7483 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/1.287, allocations: 55.78 kB / 0.7483 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.797e-05/1.287, allocations: 93.97 kB / 0.7484 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/1.288, allocations: 25.7 kB / 0.7484 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.313e-05/1.288, allocations: 85.97 kB / 0.7485 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/1.288, allocations: 42 kB / 0.7486 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-06/1.288, allocations: 4 kB / 0.7486 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.288, allocations: 316.3 kB / 0.7489 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.661e-05/1.288, allocations: 18.06 kB / 0.7489 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.261e-05/1.288, allocations: 26.31 kB / 0.7489 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.045e-05/1.288, allocations: 25.62 kB / 0.7489 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/1.288, allocations: 0 / 0.7489 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001346/1.288, allocations: 92.14 kB / 0.749 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/1.288, allocations: 4.594 kB / 0.749 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/1.288, allocations: 0 / 0.749 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/1.288, allocations: 7.969 kB / 0.749 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/1.288, allocations: 27.97 kB / 0.7491 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/1.288, allocations: 4.75 kB / 0.7491 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.971e-05/1.288, allocations: 4.859 kB / 0.7491 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/1.288, allocations: 4.5 kB / 0.7491 GB, free: 24.27 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 8.69e-05/1.288, allocations: 109.5 kB / 0.7492 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.074e-05/1.288, allocations: 10.34 kB / 0.7492 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00021/1.289, allocations: 96.92 kB / 0.7493 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/1.289, allocations: 4.562 kB / 0.7493 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/1.289, allocations: 0 / 0.7493 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.289, allocations: 8.688 kB / 0.7493 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003464/1.289, allocations: 327.1 kB / 0.7496 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/1.289, allocations: 0 / 0.7496 GB, free: 23.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/1.289, allocations: 31.92 kB / 0.7496 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/1.289, allocations: 0 / 0.7496 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/1.289, allocations: 0.7031 kB / 0.7496 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/1.289, allocations: 3.875 kB / 0.7496 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.289, allocations: 4.688 kB / 0.7496 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002404/1.29, allocations: 219.9 kB / 0.7499 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004046/1.29, allocations: 0.6147 MB / 0.7505 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/1.29, allocations: 81.47 kB / 0.7505 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/1.29, allocations: 4.609 kB / 0.7505 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/1.29, allocations: 5.859 kB / 0.7505 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.255e-05/1.29, allocations: 6.516 kB / 0.7506 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/1.29, allocations: 8.078 kB / 0.7506 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.306e-05/1.29, allocations: 83.94 kB / 0.7506 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009206/1.291, allocations: 44.14 kB / 0.7507 GB, free: 22.98 MB / 0.5105 GB 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.0002452/1.291, allocations: 140.8 kB / 0.7508 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001336/1.292, allocations: 53.36 kB / 0.7509 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/1.292, allocations: 3.875 kB / 0.7509 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 4.386e-05/1.292, allocations: 35.05 kB / 0.7509 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/1.292, allocations: 4.453 kB / 0.7509 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005175/1.292, allocations: 235 kB / 0.7511 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003403/1.293, allocations: 0.722 MB / 0.7518 GB, free: 21.99 MB / 0.5105 GB Notification: Performance of SimCode: time 1.192e-06/1.293, allocations: 0 / 0.7518 GB, free: 21.99 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)