Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.001729/0.001729, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001883/0.001883, allocations: 196.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4054/0.4054, allocations: 54.95 MB / 324.7 MB, free: 15.89 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 71.91 kB / 395.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.143, allocations: 59.59 MB / 454.9 MB, free: 132 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.2213/0.3644, allocations: 1.253 MB / 456.2 MB, free: 39.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007231/0.3651, allocations: 0.533 MB / 456.7 MB, free: 38.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.398e-05/0.3652, allocations: 3.969 kB / 456.7 MB, free: 38.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.3652, allocations: 3.531 kB / 456.7 MB, free: 38.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.431e-05/0.3652, allocations: 2.062 kB / 456.7 MB, free: 38.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.3657, allocations: 125.1 kB / 456.9 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.323e-05/0.3657, allocations: 36.16 kB / 456.9 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.058e-05/0.3658, allocations: 7.219 kB / 456.9 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.412e-05/0.3658, allocations: 11.73 kB / 456.9 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.316e-05/0.3659, allocations: 14 kB / 456.9 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.3659, allocations: 3.938 kB / 456.9 MB, free: 38.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004215/0.3663, allocations: 354.5 kB / 457.3 MB, free: 38.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.3663, allocations: 0 / 457.3 MB, free: 38.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.544e-05/0.3664, allocations: 17.83 kB / 457.3 MB, free: 38.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.3666, allocations: 143.1 kB / 457.4 MB, free: 38.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3666, allocations: 0 / 457.4 MB, free: 38.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3666, allocations: 2.844 kB / 457.4 MB, free: 38.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3666, allocations: 1.406 kB / 457.4 MB, free: 38.91 MB / 382.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.0003269/0.3669, allocations: 362.5 kB / 457.8 MB, free: 38.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.367, allocations: 9.812 kB / 457.8 MB, free: 38.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.367, allocations: 7.875 kB / 457.8 MB, free: 38.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.06e-05/0.3671, allocations: 162.7 kB / 458 MB, free: 38.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.3671, allocations: 8.188 kB / 458 MB, free: 38.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.3671, allocations: 3.188 kB / 458 MB, free: 38.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.3677, allocations: 125.5 kB / 458.1 MB, free: 38.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3677, allocations: 2.5 kB / 458.1 MB, free: 38.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.3678, allocations: 6.562 kB / 458.1 MB, free: 38.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3678, allocations: 2.875 kB / 458.1 MB, free: 38.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.3682, allocations: 86.05 kB / 458.2 MB, free: 38.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.3684, allocations: 166.6 kB / 458.4 MB, free: 38.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004874/0.3689, allocations: 132.8 kB / 458.5 MB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.699e-05/0.3689, allocations: 26.89 kB / 458.5 MB, free: 38.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002899/0.3692, allocations: 109.2 kB / 458.6 MB, free: 37.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.3693, allocations: 31.98 kB / 458.7 MB, free: 37.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.3693, allocations: 4.938 kB / 458.7 MB, free: 37.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.007917/0.3772, allocations: 1.809 MB / 460.5 MB, free: 37.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.3773, allocations: 53.19 kB / 460.5 MB, free: 37.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.654e-05/0.3773, allocations: 96.73 kB / 460.6 MB, free: 37.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.3773, allocations: 32.61 kB / 460.6 MB, free: 37.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.97e-05/0.3774, allocations: 84.12 kB / 460.7 MB, free: 37.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.5e-05/0.3774, allocations: 40.91 kB / 460.8 MB, free: 37.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/0.3775, allocations: 30.16 kB / 460.8 MB, free: 37.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.587e-05/0.3776, allocations: 318.5 kB / 461.1 MB, free: 36.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.3779, allocations: 102.6 kB / 461.2 MB, free: 36.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003573/0.3783, allocations: 101.7 kB / 461.3 MB, free: 36.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007011/0.379, allocations: 209.8 kB / 461.5 MB, free: 36.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.379, allocations: 0 / 461.5 MB, free: 36.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0007864/0.3798, allocations: 258.7 kB / 461.8 MB, free: 36.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3799, allocations: 5.562 kB / 461.8 MB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3799, allocations: 0 / 461.8 MB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.3799, allocations: 0 / 461.8 MB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003612/0.3803, allocations: 62.34 kB / 461.8 MB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.3803, allocations: 0 / 461.8 MB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.3805, allocations: 40.23 kB / 461.9 MB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.3806, allocations: 7.938 kB / 461.9 MB, free: 36.79 MB / 382.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 7.528e-05/0.3806, allocations: 116.8 kB / 462 MB, free: 36.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.3807, allocations: 11.53 kB / 462 MB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.117e-05/0.3807, allocations: 14.17 kB / 462 MB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3807, allocations: 0 / 462 MB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3807, allocations: 0 / 462 MB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3808, allocations: 3.844 kB / 462 MB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.3818, allocations: 0.5132 MB / 462.5 MB, free: 36.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3818, allocations: 6.656 kB / 462.5 MB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/0.3822, allocations: 62.25 kB / 462.6 MB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3822, allocations: 1.406 kB / 462.6 MB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.3822, allocations: 0 / 462.6 MB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3822, allocations: 0 / 462.6 MB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3822, allocations: 2.5 kB / 462.6 MB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.3834, allocations: 467 kB / 463.1 MB, free: 36.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/0.3835, allocations: 80.39 kB / 463.1 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.3835, allocations: 6.875 kB / 463.1 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.3838, allocations: 40.38 kB / 463.2 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.3839, allocations: 6.203 kB / 463.2 MB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.3839, allocations: 6.094 kB / 463.2 MB, free: 36.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.535e-05/0.3839, allocations: 81.75 kB / 463.3 MB, free: 36.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3839, allocations: 0 / 463.3 MB, free: 36.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.3842, allocations: 22.88 kB / 463.3 MB, free: 36.03 MB / 382.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.0001008/0.3843, allocations: 105 kB / 463.4 MB, free: 35.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008338/0.3851, allocations: 222 kB / 463.6 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3851, allocations: 0.6562 kB / 463.6 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003893/0.3855, allocations: 119 kB / 463.7 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.3858, allocations: 5.438 kB / 463.7 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.3878, allocations: 0.582 MB / 464.3 MB, free: 35.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.3879, allocations: 0.6834 MB / 465 MB, free: 35.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.3881, allocations: 18.81 kB / 465 MB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.545e-05/0.3882, allocations: 14.92 kB / 465 MB, free: 35.02 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3882, allocations: 0 / 465 MB, free: 35.02 MB / 382.1 MB Notification: Performance of Templates: time 0.003223/0.3914, allocations: 1.152 MB / 466.2 MB, free: 34.97 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)