Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",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.001322/0.001323, allocations: 108 kB / 15.6 MB, free: 132 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.001671/0.001671, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.486/1.486, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9614/0.9614, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 59.38 kB / 0.5054 GB, free: 5.203 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.149, allocations: 80.93 MB / 0.5845 GB, free: 4.426 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002592/0.1516, allocations: 1.249 MB / 0.5857 GB, free: 3.156 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.1527, allocations: 0.6165 MB / 0.5863 GB, free: 2.539 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.728e-05/0.1528, allocations: 3.938 kB / 0.5863 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.473e-05/0.1528, allocations: 0 / 0.5863 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.661e-05/0.1529, allocations: 3.938 kB / 0.5863 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006082/0.1535, allocations: 146.4 kB / 0.5864 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.176e-05/0.1535, allocations: 23.92 kB / 0.5865 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.18e-05/0.1536, allocations: 4 kB / 0.5865 GB, free: 2.363 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.321e-05/0.1536, allocations: 4 kB / 0.5865 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.718e-05/0.1537, allocations: 19.91 kB / 0.5865 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.1537, allocations: 0 / 0.5865 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005179/0.1542, allocations: 343.3 kB / 0.5868 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.1542, allocations: 0 / 0.5868 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.78e-05/0.1543, allocations: 15.92 kB / 0.5868 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.1546, allocations: 143.9 kB / 0.587 GB, free: 1.848 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1546, allocations: 7.984 kB / 0.587 GB, free: 1.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1546, allocations: 0 / 0.587 GB, free: 1.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1546, allocations: 0 / 0.587 GB, free: 1.84 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000431/0.155, allocations: 359.4 kB / 0.5873 GB, free: 1.441 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1551, allocations: 8.031 kB / 0.5873 GB, free: 1.434 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.1551, allocations: 34.75 kB / 0.5874 GB, free: 1.391 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.1552, allocations: 4.938 kB / 0.5874 GB, free: 1.387 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.1553, allocations: 164.4 kB / 0.5875 GB, free: 1.188 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1553, allocations: 8.359 kB / 0.5875 GB, free: 1.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.1553, allocations: 4.375 kB / 0.5875 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.1555, allocations: 45.56 kB / 0.5876 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.1555, allocations: 0 / 0.5876 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.1555, allocations: 4 kB / 0.5876 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1555, allocations: 0 / 0.5876 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.995e-05/0.1555, allocations: 8 kB / 0.5876 GB, free: 1.113 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/0.1557, allocations: 161.6 kB / 0.5878 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.1559, allocations: 46.61 kB / 0.5878 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.636e-05/0.156, allocations: 24.88 kB / 0.5878 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.156, allocations: 3.938 kB / 0.5878 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.156, allocations: 30.56 kB / 0.5879 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 3.166e-06/0.156, allocations: 3.938 kB / 0.5879 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006427/0.1567, allocations: 322.1 kB / 0.5882 GB, free: 420 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.1567, allocations: 55.41 kB / 0.5882 GB, free: 352 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.019e-05/0.1568, allocations: 97.84 kB / 0.5883 GB, free: 244 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.1568, allocations: 25.7 kB / 0.5883 GB, free: 212 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/0.1568, allocations: 84.14 kB / 0.5884 GB, free: 124 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.865e-05/0.1569, allocations: 19.7 kB / 0.5884 GB, free: 104 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.1569, allocations: 17.72 kB / 0.5884 GB, free: 80 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.157, allocations: 314.8 kB / 0.5887 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.733e-05/0.1571, allocations: 15.98 kB / 0.5888 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.131e-05/0.1571, allocations: 12 kB / 0.5888 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.782e-05/0.1572, allocations: 32.8 kB / 0.5888 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1572, allocations: 4 kB / 0.5888 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.742e-05/0.1573, allocations: 61.62 kB / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1573, allocations: 8 kB / 0.5889 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1573, allocations: 0 / 0.5889 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1573, allocations: 0 / 0.5889 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.293e-05/0.1574, allocations: 11.98 kB / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.1574, allocations: 0 / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.247e-05/0.1574, allocations: 12 kB / 0.5889 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1574, allocations: 0.5156 kB / 0.5889 GB, free: 15.6 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 (7): * Single equations (assignments): 7 * 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 6.846e-05/0.1575, allocations: 113.7 kB / 0.589 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.23e-05/0.1575, allocations: 4 kB / 0.589 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.1577, allocations: 73.64 kB / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1577, allocations: 0 / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1577, allocations: 4 kB / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1577, allocations: 3.984 kB / 0.5891 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003221/0.158, allocations: 323.2 kB / 0.5894 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.158, allocations: 0 / 0.5894 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.992e-05/0.1581, allocations: 8 kB / 0.5894 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1581, allocations: 4 kB / 0.5894 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.1581, allocations: 4.172 kB / 0.5894 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1581, allocations: 4 kB / 0.5894 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1581, allocations: 240 / 0.5894 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.1583, allocations: 184.3 kB / 0.5896 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.1584, allocations: 81.09 kB / 0.5897 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.1584, allocations: 8.031 kB / 0.5897 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.92e-05/0.1585, allocations: 3.938 kB / 0.5897 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.587e-05/0.1585, allocations: 4 kB / 0.5897 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.974e-06/0.1585, allocations: 3.984 kB / 0.5897 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.857e-05/0.1586, allocations: 83.22 kB / 0.5898 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1586, allocations: 0 / 0.5898 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002645/0.1588, allocations: 31.94 kB / 0.5898 GB, free: 14.56 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0004599/0.1593, allocations: 0.734 MB / 0.5905 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001118/0.1594, allocations: 35.92 kB / 0.5906 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.1594, allocations: 4 kB / 0.5906 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.634e-05/0.1595, allocations: 16.06 kB / 0.5906 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.1597, allocations: 10.5 kB / 0.5906 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.1608, allocations: 1.331 MB / 0.5919 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.1611, allocations: 0.6807 MB / 0.5925 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.065e-05/0.1611, allocations: 4 kB / 0.5925 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.1611, allocations: 7.438 kB / 0.5926 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1611, allocations: 0 / 0.5926 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.1823, allocations: 1.569 MB / 0.5941 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.247/7.429, allocations: 12.3 kB / 0.5941 GB, free: 10.17 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_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_DerivativeCheck.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)