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.001615/0.001615, allocations: 104.8 kB / 16.27 MB, free: 5.988 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.001467/0.001467, allocations: 188.9 kB / 17.2 MB, free: 5.613 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.389/1.389, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8026/0.8026, allocations: 135.1 MB / 426.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.00143, allocations: 59.91 kB / 0.506 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3455, allocations: 80.92 MB / 0.585 GB, free: 25.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002214/0.3477, allocations: 1.277 MB / 0.5863 GB, free: 24.37 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008363/0.3486, allocations: 0.6154 MB / 0.5869 GB, free: 23.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.806e-05/0.3486, allocations: 0.7188 kB / 0.5869 GB, free: 23.89 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.91e-05/0.3486, allocations: 6.031 kB / 0.5869 GB, free: 23.88 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.451e-05/0.3487, allocations: 0 / 0.5869 GB, free: 23.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.3492, allocations: 155.5 kB / 0.587 GB, free: 23.78 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.427e-05/0.3493, allocations: 25.59 kB / 0.587 GB, free: 23.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.3e-05/0.3493, allocations: 6.266 kB / 0.5871 GB, free: 23.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.359e-05/0.3493, allocations: 10.59 kB / 0.5871 GB, free: 23.76 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.018e-05/0.3494, allocations: 15.98 kB / 0.5871 GB, free: 23.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.3494, allocations: 2.906 kB / 0.5871 GB, free: 23.75 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004455/0.3499, allocations: 347.6 kB / 0.5874 GB, free: 23.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.404e-05/0.3499, allocations: 9.344 kB / 0.5874 GB, free: 23.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.3499, allocations: 17.25 kB / 0.5874 GB, free: 23.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.3502, allocations: 145.4 kB / 0.5876 GB, free: 23.45 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3502, allocations: 0 / 0.5876 GB, free: 23.45 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3502, allocations: 0.6562 kB / 0.5876 GB, free: 23.45 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.3502, allocations: 3.984 kB / 0.5876 GB, free: 23.45 MB / 446.1 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.0003546/0.3506, allocations: 372.7 kB / 0.5879 GB, free: 23.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3506, allocations: 10.23 kB / 0.5879 GB, free: 23.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.3506, allocations: 7.484 kB / 0.588 GB, free: 23.05 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.272e-05/0.3507, allocations: 162.2 kB / 0.5881 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.3508, allocations: 6.969 kB / 0.5881 GB, free: 22.85 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.3508, allocations: 4.125 kB / 0.5881 GB, free: 22.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.3509, allocations: 52.64 kB / 0.5882 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.3509, allocations: 1 kB / 0.5882 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.3509, allocations: 5.25 kB / 0.5882 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.351, allocations: 2.438 kB / 0.5882 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.042e-05/0.351, allocations: 22.48 kB / 0.5882 GB, free: 22.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.3512, allocations: 170 kB / 0.5884 GB, free: 22.58 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.736e-05/0.3513, allocations: 56.81 kB / 0.5884 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.093e-05/0.3513, allocations: 30.78 kB / 0.5884 GB, free: 22.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.3513, allocations: 1.406 kB / 0.5884 GB, free: 22.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.3514, allocations: 36.19 kB / 0.5885 GB, free: 22.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.3514, allocations: 0.6875 kB / 0.5885 GB, free: 22.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.001037/0.3524, allocations: 0.5936 MB / 0.5891 GB, free: 21.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.6e-05/0.3524, allocations: 56.66 kB / 0.5891 GB, free: 21.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.004e-05/0.3525, allocations: 94.7 kB / 0.5892 GB, free: 21.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.3525, allocations: 30.95 kB / 0.5892 GB, free: 21.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.632e-05/0.3525, allocations: 80.14 kB / 0.5893 GB, free: 21.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.272e-05/0.3526, allocations: 36.67 kB / 0.5893 GB, free: 21.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.3526, allocations: 30.58 kB / 0.5894 GB, free: 21.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.213e-05/0.3527, allocations: 317.4 kB / 0.5897 GB, free: 21.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.961e-05/0.3527, allocations: 19.95 kB / 0.5897 GB, free: 21.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.7e-05/0.3528, allocations: 25.09 kB / 0.5897 GB, free: 21.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.426e-05/0.3528, allocations: 65.09 kB / 0.5898 GB, free: 21.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.3529, allocations: 4.844 kB / 0.5898 GB, free: 21.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001297/0.353, allocations: 95.41 kB / 0.5899 GB, free: 21.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.353, allocations: 8.375 kB / 0.5899 GB, free: 21.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.353, allocations: 3.938 kB / 0.5899 GB, free: 21.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.353, allocations: 1.094 kB / 0.5899 GB, free: 21.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.3532, allocations: 21.58 kB / 0.5899 GB, free: 21.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3532, allocations: 1.312 kB / 0.5899 GB, free: 21.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.416e-05/0.3532, allocations: 0 / 0.5899 GB, free: 21.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.3532, allocations: 7.656 kB / 0.5899 GB, free: 21.15 MB / 446.1 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 () * 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.437e-05/0.3533, allocations: 118.4 kB / 0.59 GB, free: 21.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.3533, allocations: 6.578 kB / 0.59 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001746/0.3535, allocations: 99.36 kB / 0.5901 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3535, allocations: 1.625 kB / 0.5901 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3535, allocations: 0.5625 kB / 0.5901 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3535, allocations: 0.9062 kB / 0.5901 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003319/0.3538, allocations: 368 kB / 0.5905 GB, free: 20.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3538, allocations: 0 / 0.5905 GB, free: 20.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.354, allocations: 25.02 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.354, allocations: 1.438 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/0.354, allocations: 1.344 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.354, allocations: 0 / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.354, allocations: 1.406 kB / 0.5905 GB, free: 20.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/0.3542, allocations: 222.6 kB / 0.5907 GB, free: 20.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.644e-05/0.3542, allocations: 85.05 kB / 0.5908 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.3542, allocations: 0 / 0.5908 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.778e-05/0.3543, allocations: 11.94 kB / 0.5908 GB, free: 20.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.713e-05/0.3544, allocations: 9.109 kB / 0.5908 GB, free: 20.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.3544, allocations: 0 / 0.5908 GB, free: 20.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.059e-05/0.3544, allocations: 85 kB / 0.5909 GB, free: 20.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3544, allocations: 0 / 0.5909 GB, free: 20.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002717/0.3547, allocations: 39.94 kB / 0.5909 GB, free: 20.13 MB / 446.1 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 () * 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.0001653/0.3548, allocations: 128.8 kB / 0.5911 GB, free: 20 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001358/0.355, allocations: 71.84 kB / 0.5911 GB, free: 19.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.355, allocations: 0 / 0.5911 GB, free: 19.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.906e-05/0.355, allocations: 37.09 kB / 0.5912 GB, free: 19.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.3553, allocations: 4.75 kB / 0.5912 GB, free: 19.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005057/0.3558, allocations: 312.1 kB / 0.5915 GB, free: 19.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.942e-05/0.3559, allocations: 0.6885 MB / 0.5921 GB, free: 18.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.488e-05/0.3559, allocations: 11.44 kB / 0.5922 GB, free: 18.88 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3559, allocations: 3.938 kB / 0.5922 GB, free: 18.88 MB / 446.1 MB Notification: Performance of Templates: time 0.002379/0.3583, allocations: 1.13 MB / 0.5933 GB, free: 17.75 MB / 446.1 MB 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)