Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001448/0.001448, 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.001417/0.001416, allocations: 195.2 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.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9302/0.9302, allocations: 135.1 MB / 425.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.98 kB / 0.5055 GB, free: 5.242 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1561, allocations: 80.92 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002436/0.1585, allocations: 1.263 MB / 0.5857 GB, free: 3.188 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009444/0.1595, allocations: 0.6165 MB / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.604e-05/0.1595, allocations: 0 / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.279e-05/0.1596, allocations: 7.922 kB / 0.5863 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.145e-05/0.1596, allocations: 4 kB / 0.5863 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.1602, allocations: 150.4 kB / 0.5865 GB, free: 2.414 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.922e-05/0.1603, allocations: 15.94 kB / 0.5865 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.758e-05/0.1603, allocations: 7.984 kB / 0.5865 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.565e-05/0.1604, allocations: 8 kB / 0.5865 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.834e-05/0.1604, allocations: 7.938 kB / 0.5865 GB, free: 2.375 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.1604, allocations: 7.984 kB / 0.5865 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004981/0.1609, allocations: 343.3 kB / 0.5868 GB, free: 2.031 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.161, allocations: 8 kB / 0.5868 GB, free: 2.023 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.705e-05/0.161, allocations: 11.92 kB / 0.5869 GB, free: 2.012 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.1612, allocations: 143.9 kB / 0.587 GB, free: 1.871 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1613, allocations: 0 / 0.587 GB, free: 1.871 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1613, allocations: 0 / 0.587 GB, free: 1.871 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1613, allocations: 0 / 0.587 GB, free: 1.871 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.0004052/0.1617, allocations: 367.3 kB / 0.5873 GB, free: 1.465 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1617, allocations: 8.031 kB / 0.5874 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.909e-05/0.1618, allocations: 34.75 kB / 0.5874 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.483e-05/0.1618, allocations: 0.9375 kB / 0.5874 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.354e-05/0.1619, allocations: 168.4 kB / 0.5875 GB, free: 1.211 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.1619, allocations: 4.375 kB / 0.5876 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.1619, allocations: 384 / 0.5876 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.384e-05/0.162, allocations: 45.62 kB / 0.5876 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.162, allocations: 0 / 0.5876 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.1621, allocations: 0 / 0.5876 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1621, allocations: 0 / 0.5876 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.947e-05/0.1621, allocations: 15.94 kB / 0.5876 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.1623, allocations: 157.6 kB / 0.5878 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.1624, allocations: 50.59 kB / 0.5878 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.746e-05/0.1625, allocations: 20.94 kB / 0.5878 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.1625, allocations: 7.875 kB / 0.5878 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.1625, allocations: 38.56 kB / 0.5879 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.1625, allocations: 0 / 0.5879 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005944/0.1631, allocations: 322.1 kB / 0.5882 GB, free: 444 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.1632, allocations: 51.41 kB / 0.5882 GB, free: 380 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.572e-05/0.1633, allocations: 97.84 kB / 0.5883 GB, free: 272 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.1633, allocations: 25.7 kB / 0.5883 GB, free: 240 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.065e-05/0.1633, allocations: 84.14 kB / 0.5884 GB, free: 152 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.1633, allocations: 15.72 kB / 0.5884 GB, free: 136 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.1634, allocations: 21.7 kB / 0.5885 GB, free: 108 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.921e-05/0.1635, allocations: 318.8 kB / 0.5888 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.431e-05/0.1635, allocations: 8 kB / 0.5888 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.425e-05/0.1635, allocations: 15.98 kB / 0.5888 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.573e-05/0.1636, allocations: 32.86 kB / 0.5888 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.1636, allocations: 0 / 0.5888 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001005/0.1637, allocations: 69.56 kB / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.1637, allocations: 4 kB / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.1637, allocations: 0 / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1638, allocations: 0 / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.131e-05/0.1638, allocations: 12 kB / 0.5889 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1638, allocations: 0 / 0.5889 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.046e-05/0.1639, allocations: 8 kB / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.1639, allocations: 3.984 kB / 0.5889 GB, free: 15.62 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.314e-05/0.1639, allocations: 113.8 kB / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.1639, allocations: 0 / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.1641, allocations: 77.59 kB / 0.5891 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1641, allocations: 0 / 0.5891 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1641, allocations: 0 / 0.5891 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1641, allocations: 3.984 kB / 0.5891 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000283/0.1644, allocations: 323.4 kB / 0.5894 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1644, allocations: 4.062 kB / 0.5894 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.97e-05/0.1645, allocations: 12 kB / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1645, allocations: 0 / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1645, allocations: 0 / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1645, allocations: 4 kB / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1645, allocations: 0 / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001685/0.1647, allocations: 188.2 kB / 0.5896 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.1648, allocations: 85.12 kB / 0.5897 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.1648, allocations: 4 kB / 0.5897 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.318e-05/0.1649, allocations: 4 kB / 0.5897 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.315e-05/0.1649, allocations: 0.5156 kB / 0.5897 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.1649, allocations: 4 kB / 0.5897 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.32e-05/0.1649, allocations: 87.19 kB / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.1649, allocations: 0 / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002533/0.1652, allocations: 35.94 kB / 0.5898 GB, free: 14.58 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.0004827/0.1657, allocations: 0.7301 MB / 0.5905 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001075/0.1658, allocations: 28 kB / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1658, allocations: 64 / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.342e-05/0.1658, allocations: 27.92 kB / 0.5906 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.1661, allocations: 4 kB / 0.5906 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.1673, allocations: 1.327 MB / 0.5919 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1675, allocations: 0.6768 MB / 0.5925 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.454e-05/0.1675, allocations: 12.05 kB / 0.5926 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.25e-05/0.1676, allocations: 11.44 kB / 0.5926 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of SimCode: time 5.71e-07/0.1676, allocations: 0 / 0.5926 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.1855, allocations: 1.591 MB / 0.5941 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.155/7.341, allocations: 9.953 kB / 0.5941 GB, free: 10.2 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)