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.007873/0.007873, allocations: 102.4 kB / 15.73 MB, free: 6.062 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.001871/0.001871, allocations: 190.7 kB / 16.67 MB, free: 5.973 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7772/0.7772, allocations: 135.1 MB / 425.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 59.78 kB / 0.5851 GB, free: 21.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1446, allocations: 80.92 MB / 0.6642 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.003747/0.1484, allocations: 1.283 MB / 0.6654 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.1502, allocations: 0.623 MB / 0.666 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.372e-05/0.1503, allocations: 0 / 0.666 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.664e-05/0.1503, allocations: 7.922 kB / 0.666 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.298e-05/0.1504, allocations: 0 / 0.666 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000961/0.1514, allocations: 143.4 kB / 0.6662 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.481e-05/0.1515, allocations: 31.86 kB / 0.6662 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.788e-05/0.1516, allocations: 7.984 kB / 0.6662 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.063e-05/0.1516, allocations: 11.94 kB / 0.6662 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.822e-05/0.1517, allocations: 23.91 kB / 0.6662 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.1517, allocations: 4 kB / 0.6662 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009614/0.1527, allocations: 335.4 kB / 0.6666 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.697e-05/0.1528, allocations: 7.984 kB / 0.6666 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.921e-05/0.1528, allocations: 15.88 kB / 0.6666 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004223/0.1532, allocations: 147.8 kB / 0.6667 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1533, allocations: 0 / 0.6667 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.884e-06/0.1533, allocations: 0 / 0.6667 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.11e-05/0.1533, allocations: 0 / 0.6667 GB, free: 3.645 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.0005829/0.1539, allocations: 375.1 kB / 0.6671 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.1539, allocations: 9.109 kB / 0.6671 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.47e-05/0.154, allocations: 38.69 kB / 0.6671 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.711e-05/0.1541, allocations: 4.891 kB / 0.6671 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.1543, allocations: 164.4 kB / 0.6673 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.1543, allocations: 8.375 kB / 0.6673 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.1544, allocations: 8.125 kB / 0.6673 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.1546, allocations: 49.67 kB / 0.6674 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.1546, allocations: 0 / 0.6674 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.1546, allocations: 4 kB / 0.6674 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.1546, allocations: 4 kB / 0.6674 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.384e-05/0.1547, allocations: 19.98 kB / 0.6674 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002618/0.155, allocations: 173.5 kB / 0.6675 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.1552, allocations: 58.55 kB / 0.6676 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.789e-05/0.1553, allocations: 36.73 kB / 0.6676 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.1553, allocations: 3.984 kB / 0.6676 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.1554, allocations: 38.56 kB / 0.6677 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 2.575e-06/0.1554, allocations: 0 / 0.6677 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001755/0.1572, allocations: 0.5802 MB / 0.6682 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.1573, allocations: 51.41 kB / 0.6683 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.446e-05/0.1574, allocations: 101.8 kB / 0.6684 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.1574, allocations: 33.64 kB / 0.6684 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.1575, allocations: 80.14 kB / 0.6685 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.1575, allocations: 43.58 kB / 0.6685 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-05/0.1576, allocations: 29.72 kB / 0.6686 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1578, allocations: 322.8 kB / 0.6689 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.568e-05/0.1579, allocations: 19.98 kB / 0.6689 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.076e-05/0.158, allocations: 24 kB / 0.6689 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.1582, allocations: 60.34 kB / 0.669 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1582, allocations: 0 / 0.669 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002772/0.1585, allocations: 93.69 kB / 0.6691 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.1585, allocations: 4 kB / 0.6691 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.1585, allocations: 0 / 0.6691 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1585, allocations: 3.938 kB / 0.6691 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.1587, allocations: 23.98 kB / 0.6691 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.1588, allocations: 0 / 0.6691 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.51e-05/0.1588, allocations: 4 kB / 0.6691 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.1588, allocations: 4 kB / 0.6691 GB, free: 0.8945 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 0.0001341/0.159, allocations: 127.1 kB / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.159, allocations: 3.953 kB / 0.6692 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003154/0.1593, allocations: 113.5 kB / 0.6693 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1594, allocations: 0 / 0.6693 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.1594, allocations: 4 kB / 0.6693 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1594, allocations: 0 / 0.6693 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000656/0.1601, allocations: 350.5 kB / 0.6697 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1601, allocations: 3.938 kB / 0.6697 GB, free: 240 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.1603, allocations: 23.98 kB / 0.6697 GB, free: 216 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.1603, allocations: 4 kB / 0.6697 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1603, allocations: 0 / 0.6697 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1603, allocations: 80 / 0.6697 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.1604, allocations: 3.984 kB / 0.6697 GB, free: 208 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.1608, allocations: 219.7 kB / 0.6699 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.902e-05/0.1609, allocations: 85 kB / 0.67 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.1609, allocations: 4 kB / 0.67 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.1611, allocations: 8.094 kB / 0.67 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.1611, allocations: 15.95 kB / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.1611, allocations: 7.938 kB / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.936e-05/0.1612, allocations: 79.28 kB / 0.6701 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.21e-07/0.1612, allocations: 0 / 0.6701 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004973/0.1617, allocations: 35.88 kB / 0.6701 GB, free: 15.72 MB / 0.5137 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.001047/0.1628, allocations: 0.7789 MB / 0.6709 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002481/0.163, allocations: 71.91 kB / 0.671 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1631, allocations: 0 / 0.671 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 8.775e-05/0.1632, allocations: 35.86 kB / 0.671 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.1635, allocations: 13.97 kB / 0.671 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.1659, allocations: 1.504 MB / 0.6725 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.1663, allocations: 0.6846 MB / 0.6732 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.824e-05/0.1663, allocations: 4 kB / 0.6732 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.337e-05/0.1664, allocations: 23.42 kB / 0.6732 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of SimCode: time 3.006e-06/0.1664, allocations: 0 / 0.6732 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.1948, allocations: 2.06 MB / 0.6752 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.281/7.476, allocations: 3.375 kB / 0.6752 GB, free: 10.56 MB / 0.5137 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)