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.00143/0.00143, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.01119/0.01119, allocations: 169 kB / 16.26 MB, free: 6.66 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.563/1.563, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9802/0.9802, allocations: 135.3 MB / 426.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003066, allocations: 8.281 kB / 0.5076 GB, free: 4.75 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1569, allocations: 82.32 MB / 0.588 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001241/0.1582, allocations: 0.9944 MB / 0.5889 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009976/0.1592, allocations: 0.6323 MB / 0.5896 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.532e-05/0.1592, allocations: 0 / 0.5896 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.1592, allocations: 3.938 kB / 0.5896 GB, free: 0.957 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.155e-05/0.1593, allocations: 0 / 0.5896 GB, free: 0.957 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004219/0.1597, allocations: 127.6 kB / 0.5897 GB, free: 0.832 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.047e-05/0.1598, allocations: 27.92 kB / 0.5897 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.916e-05/0.1598, allocations: 4 kB / 0.5897 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.344e-05/0.1598, allocations: 8 kB / 0.5897 GB, free: 0.793 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.102e-05/0.1599, allocations: 19.91 kB / 0.5897 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.1599, allocations: 0 / 0.5897 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004516/0.1604, allocations: 343.3 kB / 0.5901 GB, free: 448 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.582e-05/0.1604, allocations: 15.91 kB / 0.5901 GB, free: 432 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.265e-05/0.1604, allocations: 33.64 kB / 0.5901 GB, free: 392 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.1607, allocations: 155.9 kB / 0.5903 GB, free: 236 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1607, allocations: 0 / 0.5903 GB, free: 236 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1607, allocations: 0 / 0.5903 GB, free: 236 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.1607, allocations: 0 / 0.5903 GB, free: 236 kB / 494.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.0003813/0.1611, allocations: 359.4 kB / 0.5906 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.1611, allocations: 16.02 kB / 0.5906 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.771e-05/0.1612, allocations: 8.875 kB / 0.5906 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.902e-05/0.1613, allocations: 164.3 kB / 0.5908 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.1613, allocations: 8.359 kB / 0.5908 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.1613, allocations: 4.375 kB / 0.5908 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.1614, allocations: 53.8 kB / 0.5909 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.619e-06/0.1614, allocations: 0 / 0.5909 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.1615, allocations: 8 kB / 0.5909 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1615, allocations: 0 / 0.5909 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.54e-05/0.1615, allocations: 19.98 kB / 0.5909 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.1617, allocations: 173.5 kB / 0.5911 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.48e-05/0.1618, allocations: 58.5 kB / 0.5911 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.214e-05/0.1618, allocations: 28.84 kB / 0.5911 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.1619, allocations: 0 / 0.5911 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.1619, allocations: 42.5 kB / 0.5912 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 7.22e-07/0.1619, allocations: 0 / 0.5912 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001056/0.163, allocations: 0.5824 MB / 0.5917 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.163, allocations: 55.41 kB / 0.5918 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.006e-05/0.1631, allocations: 97.86 kB / 0.5919 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.1631, allocations: 25.7 kB / 0.5919 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.798e-05/0.1632, allocations: 80.14 kB / 0.592 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.854e-05/0.1632, allocations: 47.39 kB / 0.592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.1633, allocations: 13.7 kB / 0.592 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.97e-05/0.1634, allocations: 318.8 kB / 0.5924 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.1e-05/0.1634, allocations: 23.98 kB / 0.5924 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-05/0.1635, allocations: 20.06 kB / 0.5924 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.813e-05/0.1636, allocations: 67.78 kB / 0.5925 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1636, allocations: 3.938 kB / 0.5925 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001369/0.1637, allocations: 97.59 kB / 0.5926 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.1637, allocations: 4 kB / 0.5926 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1637, allocations: 0 / 0.5926 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.1637, allocations: 0 / 0.5926 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.1638, allocations: 31.92 kB / 0.5926 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1639, allocations: 0 / 0.5926 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.273e-05/0.1639, allocations: 0 / 0.5926 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.1639, allocations: 4 kB / 0.5926 GB, free: 13.55 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 7.638e-05/0.164, allocations: 121.9 kB / 0.5927 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.062e-05/0.164, allocations: 3.938 kB / 0.5927 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.1642, allocations: 109.6 kB / 0.5928 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1642, allocations: 0 / 0.5928 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1642, allocations: 0 / 0.5928 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1642, allocations: 0 / 0.5928 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00036/0.1646, allocations: 354.5 kB / 0.5932 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1646, allocations: 4 kB / 0.5932 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.1647, allocations: 23.92 kB / 0.5932 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1647, allocations: 0 / 0.5932 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.1647, allocations: 8 kB / 0.5932 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1647, allocations: 0 / 0.5932 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1647, allocations: 0 / 0.5932 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.165, allocations: 227 kB / 0.5934 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.203e-05/0.1651, allocations: 85 kB / 0.5935 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.1651, allocations: 4.062 kB / 0.5935 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.391e-05/0.1652, allocations: 4 kB / 0.5935 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.958e-05/0.1652, allocations: 11.98 kB / 0.5935 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.1652, allocations: 0 / 0.5935 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.071e-05/0.1653, allocations: 83.22 kB / 0.5936 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1653, allocations: 0 / 0.5936 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002492/0.1655, allocations: 32 kB / 0.5936 GB, free: 12.39 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.0001921/0.1657, allocations: 147.2 kB / 0.5938 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001252/0.1659, allocations: 63.92 kB / 0.5938 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.1659, allocations: 0 / 0.5938 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.745e-05/0.1659, allocations: 31.92 kB / 0.5939 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.1662, allocations: 8 kB / 0.5939 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005503/0.1667, allocations: 336.5 kB / 0.5942 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.167, allocations: 0.6887 MB / 0.5949 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.261e-05/0.167, allocations: 7.984 kB / 0.5949 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.334e-05/0.167, allocations: 15.44 kB / 0.5949 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.167, allocations: 0 / 0.5949 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of Templates: time 0.00294/0.17, allocations: 0.9135 MB / 0.5958 GB, free: 10.16 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)