Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_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_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.002949/0.002949, allocations: 177.3 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7049/0.7049, allocations: 133.5 MB / 141.4 MB, free: 15.64 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.441/1.441, allocations: 221.3 MB / 395 MB, free: 10.19 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.001048/0.001047, allocations: 97.84 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4228/0.4239, allocations: 88.43 MB / 0.5529 GB, free: 89.14 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.6032, allocations: 82.31 MB / 0.6333 GB, free: 13.99 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5212/1.124, allocations: 111.5 MB / 0.7422 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/1.125, allocations: 79.97 kB / 0.7422 GB, free: 10.61 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.01265/1.137, allocations: 4.53 MB / 0.7467 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/1.137, allocations: 8.281 kB / 0.7467 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/1.137, allocations: 7.781 kB / 0.7467 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/1.138, allocations: 168.1 kB / 0.7468 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/1.138, allocations: 3.812 kB / 0.7468 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/1.138, allocations: 4.609 kB / 0.7468 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.78e-05/1.138, allocations: 16.2 kB / 0.7469 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.584e-05/1.138, allocations: 48.89 kB / 0.7469 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/1.138, allocations: 0 / 0.7469 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/1.138, allocations: 0.6094 kB / 0.7469 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/1.138, allocations: 0 / 0.7469 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/1.138, allocations: 141.7 kB / 0.747 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 6.051e-05/1.138, allocations: 41.25 kB / 0.7471 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.989e-05/1.138, allocations: 28.94 kB / 0.7471 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/1.138, allocations: 0 / 0.7471 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/1.138, allocations: 35.31 kB / 0.7471 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 8.22e-07/1.138, allocations: 0 / 0.7471 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0008736/1.139, allocations: 0.5121 MB / 0.7476 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/1.139, allocations: 52.16 kB / 0.7477 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/1.139, allocations: 100.1 kB / 0.7478 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/1.139, allocations: 25.7 kB / 0.7478 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/1.139, allocations: 80.8 kB / 0.7479 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/1.139, allocations: 37.62 kB / 0.7479 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/1.139, allocations: 1.031 kB / 0.7479 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001213/1.14, allocations: 320 kB / 0.7482 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.4e-05/1.14, allocations: 21.25 kB / 0.7482 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.821e-05/1.14, allocations: 18 kB / 0.7483 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.19e-05/1.14, allocations: 20.86 kB / 0.7483 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/1.14, allocations: 4.125 kB / 0.7483 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001295/1.14, allocations: 83.81 kB / 0.7484 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/1.14, allocations: 7.531 kB / 0.7484 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/1.14, allocations: 0 / 0.7484 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/1.14, allocations: 0.5625 kB / 0.7484 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/1.14, allocations: 25.94 kB / 0.7484 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/1.14, allocations: 4.797 kB / 0.7484 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.589e-05/1.14, allocations: 3.938 kB / 0.7484 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/1.14, allocations: 3.625 kB / 0.7484 GB, free: 24.41 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 0.0001233/1.14, allocations: 109.5 kB / 0.7485 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/1.14, allocations: 3.875 kB / 0.7485 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/1.14, allocations: 100.4 kB / 0.7486 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/1.14, allocations: 8.609 kB / 0.7486 GB, free: 24.24 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/1.14, allocations: 3.938 kB / 0.7486 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/1.14, allocations: 0.5156 kB / 0.7486 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003848/1.141, allocations: 316.4 kB / 0.7489 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/1.141, allocations: 0 / 0.7489 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/1.141, allocations: 21.75 kB / 0.749 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/1.141, allocations: 8.656 kB / 0.749 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/1.141, allocations: 0 / 0.749 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/1.141, allocations: 0 / 0.749 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.141, allocations: 4.594 kB / 0.749 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002118/1.141, allocations: 212.9 kB / 0.7492 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003384/1.142, allocations: 0.5944 MB / 0.7497 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.818e-05/1.142, allocations: 85.67 kB / 0.7498 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/1.142, allocations: 3.938 kB / 0.7498 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.672e-05/1.142, allocations: 0.75 kB / 0.7498 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/1.142, allocations: 6.359 kB / 0.7498 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.759e-06/1.142, allocations: 4.469 kB / 0.7498 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.088e-05/1.142, allocations: 79.22 kB / 0.7499 GB, free: 23.13 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008406/1.143, allocations: 47.48 kB / 0.75 GB, free: 23.12 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.0002443/1.143, allocations: 141.2 kB / 0.7501 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001156/1.143, allocations: 51.53 kB / 0.7501 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/1.143, allocations: 3.844 kB / 0.7502 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/1.143, allocations: 25.36 kB / 0.7502 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/1.143, allocations: 8.125 kB / 0.7502 GB, free: 23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004569/1.144, allocations: 215.4 kB / 0.7504 GB, free: 22.85 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003567/1.144, allocations: 0.7123 MB / 0.7511 GB, free: 22.14 MB / 0.5105 GB Notification: Performance of SimCode: time 2.5e-07/1.144, allocations: 3.938 kB / 0.7511 GB, free: 22.14 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)