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: "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_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_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, 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.001323/0.001323, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9629/0.9629, allocations: 135.1 MB / 425.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 63.88 kB / 0.5054 GB, free: 5.242 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.157, allocations: 80.93 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002666/0.1597, allocations: 1.263 MB / 0.5857 GB, free: 3.188 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.1607, allocations: 0.6282 MB / 0.5863 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.765e-05/0.1608, allocations: 0 / 0.5863 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.824e-05/0.1608, allocations: 0 / 0.5863 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.419e-05/0.1609, allocations: 3.938 kB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005948/0.1615, allocations: 155.3 kB / 0.5865 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.915e-05/0.1615, allocations: 23.92 kB / 0.5865 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.421e-05/0.1616, allocations: 12 kB / 0.5865 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.464e-05/0.1616, allocations: 7.938 kB / 0.5865 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.1617, allocations: 11.98 kB / 0.5865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.1617, allocations: 7.984 kB / 0.5865 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005104/0.1622, allocations: 343.3 kB / 0.5869 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.708e-05/0.1622, allocations: 7.922 kB / 0.5869 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.289e-05/0.1623, allocations: 15.92 kB / 0.5869 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002808/0.1626, allocations: 151.9 kB / 0.587 GB, free: 1.832 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1626, allocations: 0 / 0.587 GB, free: 1.832 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1626, allocations: 0 / 0.587 GB, free: 1.832 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1626, allocations: 0 / 0.587 GB, free: 1.832 MB / 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.0004212/0.163, allocations: 375.3 kB / 0.5874 GB, free: 1.418 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1631, allocations: 8.031 kB / 0.5874 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.598e-05/0.1631, allocations: 34.75 kB / 0.5874 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.1631, allocations: 0.9375 kB / 0.5874 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.1633, allocations: 176.3 kB / 0.5876 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.1633, allocations: 384 / 0.5876 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.1633, allocations: 8.359 kB / 0.5876 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.1634, allocations: 57.61 kB / 0.5877 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1635, allocations: 0 / 0.5877 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1635, allocations: 4 kB / 0.5877 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.1635, allocations: 0 / 0.5877 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.487e-05/0.1635, allocations: 19.98 kB / 0.5877 GB, free: 1.062 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.1637, allocations: 165.6 kB / 0.5878 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.748e-05/0.1638, allocations: 58.5 kB / 0.5879 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.571e-05/0.1639, allocations: 32.84 kB / 0.5879 GB, free: 0.75 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.1639, allocations: 7.938 kB / 0.5879 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.164, allocations: 38.5 kB / 0.588 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.164, allocations: 0 / 0.588 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001088/0.165, allocations: 0.576 MB / 0.5885 GB, free: 28 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.1651, allocations: 55.41 kB / 0.5886 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.253e-05/0.1652, allocations: 97.84 kB / 0.5887 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1652, allocations: 29.7 kB / 0.5887 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.65e-05/0.1652, allocations: 80.14 kB / 0.5888 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.1653, allocations: 43.39 kB / 0.5888 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.1653, allocations: 25.72 kB / 0.5889 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.976e-05/0.1654, allocations: 318.8 kB / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.327e-05/0.1655, allocations: 20.12 kB / 0.5892 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.879e-05/0.1655, allocations: 34.8 kB / 0.5892 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.96e-05/0.1656, allocations: 56.73 kB / 0.5893 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.1656, allocations: 4 kB / 0.5893 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001399/0.1658, allocations: 97.58 kB / 0.5894 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1658, allocations: 6.656 kB / 0.5894 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1658, allocations: 0 / 0.5894 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1658, allocations: 4 kB / 0.5894 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.1659, allocations: 23.92 kB / 0.5894 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1659, allocations: 0 / 0.5894 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.589e-05/0.166, allocations: 4 kB / 0.5894 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.166, allocations: 8 kB / 0.5894 GB, free: 15.09 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.4e-05/0.1661, allocations: 117.8 kB / 0.5895 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.495e-05/0.1661, allocations: 0 / 0.5895 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.1663, allocations: 113.9 kB / 0.5896 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.423e-06/0.1663, allocations: 3.984 kB / 0.5896 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1663, allocations: 7.938 kB / 0.5896 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1663, allocations: 0 / 0.5896 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003592/0.1667, allocations: 360.7 kB / 0.59 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1667, allocations: 0 / 0.59 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.1668, allocations: 23.92 kB / 0.59 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.696e-06/0.1668, allocations: 4 kB / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.1668, allocations: 0 / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1668, allocations: 0 / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1669, allocations: 0 / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.1671, allocations: 219.5 kB / 0.5902 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.024e-05/0.1671, allocations: 89.02 kB / 0.5903 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.1672, allocations: 8.031 kB / 0.5903 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.728e-05/0.1672, allocations: 3.984 kB / 0.5903 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.828e-05/0.1673, allocations: 4 kB / 0.5903 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.1673, allocations: 11.94 kB / 0.5903 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.06e-05/0.1673, allocations: 79.27 kB / 0.5904 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1673, allocations: 0 / 0.5904 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002753/0.1676, allocations: 32 kB / 0.5904 GB, free: 13.92 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.0005562/0.1682, allocations: 0.7834 MB / 0.5912 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001499/0.1683, allocations: 75.62 kB / 0.5913 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1683, allocations: 0 / 0.5913 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.819e-05/0.1684, allocations: 35.94 kB / 0.5913 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.1686, allocations: 7.922 kB / 0.5913 GB, free: 13 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.17, allocations: 1.501 MB / 0.5928 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/0.1702, allocations: 0.6846 MB / 0.5935 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.693e-05/0.1703, allocations: 11.97 kB / 0.5935 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.765e-05/0.1703, allocations: 27.38 kB / 0.5935 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1703, allocations: 0 / 0.5935 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.1895, allocations: 2.009 MB / 0.5955 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.237/7.427, allocations: 4.438 kB / 0.5955 GB, free: 8.812 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)