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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007217/0.007217, allocations: 101.4 kB / 15.73 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 195.6 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.012/1.012, allocations: 135.1 MB / 425.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 67.83 kB / 0.5856 GB, free: 3.348 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4004, allocations: 80.91 MB / 0.6646 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002047/0.4025, allocations: 1.283 MB / 0.6659 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00085/0.4033, allocations: 0.6157 MB / 0.6665 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.596e-05/0.4034, allocations: 1.094 kB / 0.6665 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.483e-05/0.4034, allocations: 0 / 0.6665 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.557e-05/0.4035, allocations: 3.938 kB / 0.6665 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00049/0.404, allocations: 153.5 kB / 0.6666 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.823e-05/0.404, allocations: 30.11 kB / 0.6667 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.312e-05/0.4041, allocations: 5.109 kB / 0.6667 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.278e-05/0.4041, allocations: 15.05 kB / 0.6667 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.717e-05/0.4042, allocations: 16.52 kB / 0.6667 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.4042, allocations: 1.25 kB / 0.6667 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004205/0.4046, allocations: 347 kB / 0.667 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.32e-05/0.4046, allocations: 1.5 kB / 0.667 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.636e-05/0.4047, allocations: 12.72 kB / 0.6671 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.4049, allocations: 154.2 kB / 0.6672 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4049, allocations: 1.312 kB / 0.6672 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4049, allocations: 0 / 0.6672 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.4049, allocations: 0 / 0.6672 GB, free: 5.637 MB / 0.4981 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.0003434/0.4053, allocations: 376.5 kB / 0.6676 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.4053, allocations: 8.969 kB / 0.6676 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.4054, allocations: 3.875 kB / 0.6676 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.482e-05/0.4055, allocations: 173.9 kB / 0.6677 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.4055, allocations: 2.062 kB / 0.6677 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.4055, allocations: 7.406 kB / 0.6677 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.4056, allocations: 47.59 kB / 0.6678 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.4056, allocations: 5.344 kB / 0.6678 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.4056, allocations: 4 kB / 0.6678 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.4057, allocations: 5.688 kB / 0.6678 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.04e-05/0.4057, allocations: 18.8 kB / 0.6678 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000122/0.4058, allocations: 161.4 kB / 0.668 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.436e-05/0.4059, allocations: 64.42 kB / 0.668 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.406, allocations: 21.11 kB / 0.6681 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.406, allocations: 9 kB / 0.6681 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.406, allocations: 43.69 kB / 0.6681 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.406, allocations: 1.094 kB / 0.6681 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0009803/0.407, allocations: 0.5909 MB / 0.6687 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.092e-05/0.4071, allocations: 52.62 kB / 0.6687 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.792e-05/0.4071, allocations: 96.67 kB / 0.6688 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.4071, allocations: 30.55 kB / 0.6689 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.426e-05/0.4072, allocations: 81.73 kB / 0.6689 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.4072, allocations: 43.44 kB / 0.669 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.4072, allocations: 26.31 kB / 0.669 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.239e-05/0.4073, allocations: 320.1 kB / 0.6693 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.707e-05/0.4073, allocations: 19.67 kB / 0.6693 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.592e-05/0.4074, allocations: 17.41 kB / 0.6693 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.196e-05/0.4074, allocations: 68.03 kB / 0.6694 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4075, allocations: 1.625 kB / 0.6694 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001259/0.4076, allocations: 98.47 kB / 0.6695 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.4076, allocations: 7.469 kB / 0.6695 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.4076, allocations: 0 / 0.6695 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.4076, allocations: 1.219 kB / 0.6695 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.4077, allocations: 21.83 kB / 0.6695 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.4078, allocations: 0 / 0.6695 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.472e-05/0.4078, allocations: 1.156 kB / 0.6695 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.4078, allocations: 7.5 kB / 0.6695 GB, free: 3.316 MB / 0.4981 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.076e-05/0.4078, allocations: 124.1 kB / 0.6697 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.4079, allocations: 6.406 kB / 0.6697 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.408, allocations: 102.9 kB / 0.6698 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.408, allocations: 5.547 kB / 0.6698 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.4081, allocations: 0 / 0.6698 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.4081, allocations: 1.25 kB / 0.6698 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.4084, allocations: 355.8 kB / 0.6701 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.4084, allocations: 1.469 kB / 0.6701 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.4085, allocations: 25.36 kB / 0.6701 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4085, allocations: 0 / 0.6701 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.4085, allocations: 1.219 kB / 0.6701 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.4085, allocations: 5.469 kB / 0.6701 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4085, allocations: 0 / 0.6701 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.4087, allocations: 217.9 kB / 0.6704 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.521e-05/0.4087, allocations: 82.44 kB / 0.6704 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.4087, allocations: 5.594 kB / 0.6704 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.4088, allocations: 9.188 kB / 0.6704 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.4089, allocations: 8.172 kB / 0.6705 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.4089, allocations: 10.31 kB / 0.6705 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.642e-05/0.4089, allocations: 77.5 kB / 0.6705 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4089, allocations: 0 / 0.6705 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002641/0.4092, allocations: 36.47 kB / 0.6706 GB, free: 2.359 MB / 0.4981 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001673/0.4093, allocations: 138.1 kB / 0.6707 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001466/0.4095, allocations: 63.08 kB / 0.6708 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4095, allocations: 0 / 0.6708 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.675e-05/0.4096, allocations: 36.92 kB / 0.6708 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.4098, allocations: 11.66 kB / 0.6708 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004307/0.4102, allocations: 282.2 kB / 0.6711 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.324e-05/0.4103, allocations: 0.6923 MB / 0.6718 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.074e-05/0.4104, allocations: 13.11 kB / 0.6718 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.261e-05/0.4104, allocations: 12.69 kB / 0.6718 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.4104, allocations: 3.938 kB / 0.6718 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of Templates: time 0.002975/0.4134, allocations: 0.9462 MB / 0.6727 GB, free: 0.7578 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (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 & ./IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)