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.001342/0.001342, allocations: 108 kB / 15.61 MB, free: 148 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.001186/0.001186, allocations: 193.8 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.391/1.391, 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/package.mo): time 0.7806/0.7806, allocations: 132.2 MB / 422.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001475, allocations: 64.27 kB / 0.5019 GB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3972, allocations: 80.2 MB / 0.5802 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002625/0.3999, allocations: 1.264 MB / 0.5814 GB, free: 3.691 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009713/0.4009, allocations: 0.6214 MB / 0.582 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.717e-05/0.4009, allocations: 0 / 0.582 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.949e-05/0.4009, allocations: 2.047 kB / 0.582 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.148e-05/0.401, allocations: 8.594 kB / 0.582 GB, free: 3.25 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005312/0.4015, allocations: 144.8 kB / 0.5822 GB, free: 3.184 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.56e-05/0.4016, allocations: 19.75 kB / 0.5822 GB, free: 3.176 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.069e-05/0.4017, allocations: 2.828 kB / 0.5822 GB, free: 3.176 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.683e-05/0.4017, allocations: 5.234 kB / 0.5822 GB, free: 3.176 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.058e-05/0.4018, allocations: 12.39 kB / 0.5822 GB, free: 3.168 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.4018, allocations: 2.156 kB / 0.5822 GB, free: 3.168 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006241/0.4024, allocations: 346.2 kB / 0.5826 GB, free: 3.066 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.4024, allocations: 1.625 kB / 0.5826 GB, free: 3.066 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.611e-05/0.4025, allocations: 12.48 kB / 0.5826 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003056/0.4028, allocations: 151.4 kB / 0.5827 GB, free: 3.008 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4028, allocations: 1.094 kB / 0.5827 GB, free: 3.008 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.4028, allocations: 0 / 0.5827 GB, free: 3.008 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.4028, allocations: 0 / 0.5827 GB, free: 3.008 MB / 430.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.0004086/0.4032, allocations: 362.2 kB / 0.5831 GB, free: 2.629 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.4033, allocations: 9.781 kB / 0.5831 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.272e-05/0.4033, allocations: 31.83 kB / 0.5831 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.031e-05/0.4033, allocations: 3.219 kB / 0.5831 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.176e-05/0.4034, allocations: 170.5 kB / 0.5833 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.4034, allocations: 2.562 kB / 0.5833 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.4035, allocations: 1.719 kB / 0.5833 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.721e-05/0.4036, allocations: 47.31 kB / 0.5833 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.4036, allocations: 0.6562 kB / 0.5833 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.4036, allocations: 1.531 kB / 0.5833 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.4036, allocations: 0 / 0.5833 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.8e-05/0.4036, allocations: 12.19 kB / 0.5833 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.4038, allocations: 159.5 kB / 0.5835 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.404, allocations: 47.05 kB / 0.5835 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.121e-05/0.404, allocations: 26.67 kB / 0.5835 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.4041, allocations: 4.969 kB / 0.5836 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.4041, allocations: 32.33 kB / 0.5836 GB, free: 2.047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.4041, allocations: 3.938 kB / 0.5836 GB, free: 2.043 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006679/0.4048, allocations: 312.6 kB / 0.5839 GB, free: 1.754 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.4048, allocations: 52.88 kB / 0.5839 GB, free: 1.691 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.12e-05/0.4049, allocations: 95.33 kB / 0.584 GB, free: 1.594 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.4049, allocations: 27.84 kB / 0.5841 GB, free: 1.562 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.86e-05/0.4049, allocations: 84.14 kB / 0.5841 GB, free: 1.477 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.4049, allocations: 23.66 kB / 0.5842 GB, free: 1.457 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.692e-05/0.405, allocations: 24.31 kB / 0.5842 GB, free: 1.434 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.843e-05/0.405, allocations: 317.6 kB / 0.5845 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.965e-05/0.4051, allocations: 15.83 kB / 0.5845 GB, free: 1.109 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.412e-05/0.4051, allocations: 8.156 kB / 0.5845 GB, free: 1.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.297e-05/0.4052, allocations: 37.19 kB / 0.5845 GB, free: 1.086 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.4052, allocations: 1.281 kB / 0.5845 GB, free: 1.086 MB / 430.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.915e-05/0.4053, allocations: 63.62 kB / 0.5846 GB, free: 1.043 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.4053, allocations: 4.906 kB / 0.5846 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.4053, allocations: 1.062 kB / 0.5846 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.4053, allocations: 0.7969 kB / 0.5846 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.587e-05/0.4054, allocations: 11.84 kB / 0.5846 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.4054, allocations: 0 / 0.5846 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.964e-05/0.4054, allocations: 10.23 kB / 0.5846 GB, free: 1.035 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.4054, allocations: 1.281 kB / 0.5846 GB, free: 1.035 MB / 430.1 MB 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.109e-05/0.4055, allocations: 117.5 kB / 0.5847 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.4055, allocations: 2.312 kB / 0.5847 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001625/0.4057, allocations: 73.25 kB / 0.5848 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4057, allocations: 0.7031 kB / 0.5848 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4057, allocations: 0.9062 kB / 0.5848 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.4057, allocations: 0 / 0.5848 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002868/0.406, allocations: 325.3 kB / 0.5851 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.406, allocations: 1.656 kB / 0.5851 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.423e-05/0.4061, allocations: 11.03 kB / 0.5851 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.4061, allocations: 0.8125 kB / 0.5851 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-06/0.4061, allocations: 1.469 kB / 0.5851 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.4061, allocations: 1.125 kB / 0.5851 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4061, allocations: 1.578 kB / 0.5851 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001698/0.4063, allocations: 191.8 kB / 0.5853 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.76e-05/0.4064, allocations: 86.09 kB / 0.5854 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.4064, allocations: 5.109 kB / 0.5854 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.133e-05/0.4065, allocations: 1.859 kB / 0.5854 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.72e-05/0.4065, allocations: 4.359 kB / 0.5854 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.4065, allocations: 2.828 kB / 0.5854 GB, free: 260 kB / 430.1 MB Notification: Performance of sorting global known variables: time 2.512e-05/0.4065, allocations: 86.86 kB / 0.5855 GB, free: 176 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4065, allocations: 4.062 kB / 0.5855 GB, free: 172 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002584/0.4068, allocations: 19.58 kB / 0.5855 GB, free: 168 kB / 430.1 MB 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.0005333/0.4073, allocations: 0.7299 MB / 0.5862 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.4075, allocations: 36.73 kB / 0.5863 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4075, allocations: 4.062 kB / 0.5863 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.119e-05/0.4075, allocations: 17.47 kB / 0.5863 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.4077, allocations: 10.78 kB / 0.5863 GB, free: 15.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.409, allocations: 1.324 MB / 0.5876 GB, free: 14.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.4092, allocations: 0.68 MB / 0.5883 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.926e-05/0.4092, allocations: 4.031 kB / 0.5883 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.177e-05/0.4093, allocations: 15.38 kB / 0.5883 GB, free: 13.46 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4093, allocations: 1.281 kB / 0.5883 GB, free: 13.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.4273, allocations: 1.554 MB / 0.5898 GB, free: 13.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.223/7.651, allocations: 14.8 kB / 0.5898 GB, free: 13.12 MB / 446.1 MB (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)