Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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_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.008709/0.008709, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.002105/0.002105, allocations: 191.9 kB / 16.67 MB, free: 5.48 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8462/0.8462, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 64.48 kB / 0.5809 GB, free: 24.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1499, allocations: 80.21 MB / 0.6592 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002251/0.1522, allocations: 1.264 MB / 0.6604 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001058/0.1532, allocations: 0.6113 MB / 0.661 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.1533, allocations: 0 / 0.661 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.641e-05/0.1533, allocations: 3.938 kB / 0.661 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.401e-05/0.1534, allocations: 0 / 0.661 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.1539, allocations: 149.2 kB / 0.6612 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.568e-05/0.154, allocations: 23.86 kB / 0.6612 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.606e-05/0.154, allocations: 0 / 0.6612 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.565e-05/0.1541, allocations: 19.88 kB / 0.6612 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.172e-05/0.1541, allocations: 7.984 kB / 0.6612 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.1542, allocations: 4 kB / 0.6612 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005463/0.1547, allocations: 339.4 kB / 0.6615 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.195e-05/0.1547, allocations: 3.938 kB / 0.6616 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.572e-05/0.1548, allocations: 15.92 kB / 0.6616 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.155, allocations: 143.9 kB / 0.6617 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.155, allocations: 0 / 0.6617 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.263e-06/0.155, allocations: 0 / 0.6617 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.1551, allocations: 0 / 0.6617 GB, free: 8.16 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004448/0.1555, allocations: 367.1 kB / 0.6621 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1556, allocations: 8.031 kB / 0.6621 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.638e-05/0.1556, allocations: 34.69 kB / 0.6621 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.1556, allocations: 4.938 kB / 0.6621 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.1558, allocations: 168.3 kB / 0.6623 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1558, allocations: 384 / 0.6623 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.1558, allocations: 16.06 kB / 0.6623 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.1559, allocations: 37.69 kB / 0.6623 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.1559, allocations: 0 / 0.6623 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.156, allocations: 8 kB / 0.6623 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.156, allocations: 0 / 0.6623 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.636e-05/0.156, allocations: 4 kB / 0.6623 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001866/0.1562, allocations: 157.7 kB / 0.6625 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.1564, allocations: 46.55 kB / 0.6625 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.949e-05/0.1565, allocations: 24.88 kB / 0.6625 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.1565, allocations: 0 / 0.6625 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.1565, allocations: 34.56 kB / 0.6626 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.1565, allocations: 0 / 0.6626 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0006727/0.1572, allocations: 314.4 kB / 0.6629 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.1572, allocations: 51.41 kB / 0.6629 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.401e-05/0.1573, allocations: 105.8 kB / 0.663 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.1573, allocations: 29.7 kB / 0.6631 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.1574, allocations: 84.14 kB / 0.6631 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.1574, allocations: 23.8 kB / 0.6632 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.1575, allocations: 21.7 kB / 0.6632 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1576, allocations: 314.8 kB / 0.6635 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.68e-05/0.1576, allocations: 8 kB / 0.6635 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.531e-05/0.1577, allocations: 15.98 kB / 0.6635 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.747e-05/0.1577, allocations: 28.86 kB / 0.6635 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1578, allocations: 3.938 kB / 0.6635 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001075/0.1579, allocations: 69.75 kB / 0.6636 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1579, allocations: 8 kB / 0.6636 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1579, allocations: 3.938 kB / 0.6636 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.1579, allocations: 3.938 kB / 0.6636 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.365e-05/0.158, allocations: 12 kB / 0.6636 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.158, allocations: 3.984 kB / 0.6636 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.158, allocations: 0 / 0.6636 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.158, allocations: 0 / 0.6636 GB, free: 5.91 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 9.473e-05/0.1581, allocations: 118.7 kB / 0.6637 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.1581, allocations: 3.953 kB / 0.6637 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001568/0.1583, allocations: 73.59 kB / 0.6638 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1583, allocations: 7.984 kB / 0.6638 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1583, allocations: 3.938 kB / 0.6638 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1583, allocations: 0 / 0.6638 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.1587, allocations: 311.4 kB / 0.6641 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1587, allocations: 0 / 0.6641 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.837e-05/0.1588, allocations: 15.94 kB / 0.6641 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1588, allocations: 0 / 0.6641 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.1588, allocations: 0 / 0.6641 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.1588, allocations: 12.02 kB / 0.6642 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1588, allocations: 0 / 0.6642 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002095/0.159, allocations: 176.3 kB / 0.6643 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.153e-05/0.1591, allocations: 93.08 kB / 0.6644 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.1591, allocations: 0 / 0.6644 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.993e-05/0.1592, allocations: 192 / 0.6644 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.841e-05/0.1592, allocations: 12 kB / 0.6644 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.1593, allocations: 11.94 kB / 0.6644 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.351e-05/0.1593, allocations: 83.27 kB / 0.6645 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1593, allocations: 0 / 0.6645 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002583/0.1596, allocations: 19.94 kB / 0.6645 GB, free: 4.863 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.000584/0.1602, allocations: 0.7289 MB / 0.6652 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001219/0.1603, allocations: 36.16 kB / 0.6653 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.1603, allocations: 4 kB / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.913e-05/0.1603, allocations: 11.94 kB / 0.6653 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.1606, allocations: 12.69 kB / 0.6653 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.162, allocations: 1.327 MB / 0.6666 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.1623, allocations: 0.6807 MB / 0.6673 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.985e-05/0.1623, allocations: 256 / 0.6673 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.551e-05/0.1624, allocations: 19.44 kB / 0.6673 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of SimCode: time 3.71e-07/0.1624, allocations: 0 / 0.6673 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.1863, allocations: 1.591 MB / 0.6688 GB, free: 496 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.039/8.226, allocations: 7.344 kB / 0.6688 GB, free: 492 kB / 0.4981 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)