Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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/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_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001112/0.001112, 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.001189/0.001189, allocations: 196.6 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.767/0.767, allocations: 132.2 MB / 422.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002149/0.00215, allocations: 56.03 kB / 0.5019 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.3967, allocations: 80.21 MB / 0.5802 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003168/0.3999, allocations: 1.457 MB / 0.5816 GB, free: 3.559 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.4011, allocations: 0.6384 MB / 0.5822 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.083e-05/0.4012, allocations: 1.406 kB / 0.5822 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 3.146e-05/0.4012, allocations: 5.344 kB / 0.5823 GB, free: 3.109 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.89e-05/0.4013, allocations: 5.156 kB / 0.5823 GB, free: 3.105 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007283/0.402, allocations: 170.8 kB / 0.5824 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 9.009e-05/0.4021, allocations: 53.61 kB / 0.5825 GB, free: 3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.802e-05/0.4022, allocations: 3.656 kB / 0.5825 GB, free: 3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.301e-05/0.4023, allocations: 25.33 kB / 0.5825 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.536e-05/0.4023, allocations: 26.48 kB / 0.5825 GB, free: 2.977 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.4024, allocations: 3 kB / 0.5825 GB, free: 2.977 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006095/0.403, allocations: 348.9 kB / 0.5829 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.378e-05/0.403, allocations: 12.98 kB / 0.5829 GB, free: 2.867 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.62e-05/0.403, allocations: 30.97 kB / 0.5829 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003731/0.4034, allocations: 166.5 kB / 0.5831 GB, free: 2.797 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4034, allocations: 0.6875 kB / 0.5831 GB, free: 2.797 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4034, allocations: 3.938 kB / 0.5831 GB, free: 2.793 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.4035, allocations: 0.9688 kB / 0.5831 GB, free: 2.793 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005725/0.404, allocations: 397.5 kB / 0.5834 GB, free: 2.402 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.4041, allocations: 9.594 kB / 0.5835 GB, free: 2.402 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.176e-05/0.4041, allocations: 42.86 kB / 0.5835 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.007e-05/0.4042, allocations: 12.55 kB / 0.5835 GB, free: 2.348 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.315e-05/0.4042, allocations: 176.1 kB / 0.5837 GB, free: 2.141 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.4043, allocations: 2.75 kB / 0.5837 GB, free: 2.141 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.506e-05/0.4043, allocations: 13.52 kB / 0.5837 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/0.4046, allocations: 83.56 kB / 0.5838 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.4046, allocations: 3.938 kB / 0.5838 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.4046, allocations: 1.125 kB / 0.5838 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.4046, allocations: 2.531 kB / 0.5838 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/0.4049, allocations: 54.86 kB / 0.5838 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005126/0.4054, allocations: 314.8 kB / 0.5841 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.4057, allocations: 82.78 kB / 0.5842 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.4058, allocations: 36.58 kB / 0.5842 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.4058, allocations: 0.9688 kB / 0.5842 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.4058, allocations: 32.73 kB / 0.5843 GB, free: 1.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.4059, allocations: 0 / 0.5843 GB, free: 1.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.001582/0.4074, allocations: 0.6483 MB / 0.5849 GB, free: 1.145 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.107e-05/0.4075, allocations: 53.62 kB / 0.585 GB, free: 1.082 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.842e-05/0.4075, allocations: 100.9 kB / 0.5851 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.4075, allocations: 30.8 kB / 0.5851 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.4076, allocations: 96.16 kB / 0.5852 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.4076, allocations: 38.66 kB / 0.5852 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.4077, allocations: 29.11 kB / 0.5852 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.884e-05/0.4077, allocations: 322.2 kB / 0.5855 GB, free: 488 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.4079, allocations: 28.73 kB / 0.5856 GB, free: 484 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.408, allocations: 33.25 kB / 0.5856 GB, free: 476 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.4083, allocations: 75.89 kB / 0.5857 GB, free: 444 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.4083, allocations: 0.7031 kB / 0.5857 GB, free: 444 kB / 430.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003192/0.4086, allocations: 117.5 kB / 0.5858 GB, free: 388 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.4086, allocations: 6.359 kB / 0.5858 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.4086, allocations: 192 / 0.5858 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.4086, allocations: 3.938 kB / 0.5858 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.4088, allocations: 29.91 kB / 0.5858 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.4088, allocations: 4.594 kB / 0.5858 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.734e-05/0.4089, allocations: 10.58 kB / 0.5858 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.4089, allocations: 11.19 kB / 0.5859 GB, free: 364 kB / 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 (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 5.891e-05/0.409, allocations: 114.5 kB / 0.586 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.393e-05/0.409, allocations: 7.312 kB / 0.586 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003666/0.4094, allocations: 125 kB / 0.5861 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4094, allocations: 11.14 kB / 0.5861 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4094, allocations: 0 / 0.5861 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.4094, allocations: 0.6094 kB / 0.5861 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005702/0.41, allocations: 379 kB / 0.5865 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.41, allocations: 12.62 kB / 0.5865 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.4102, allocations: 29.28 kB / 0.5865 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.4102, allocations: 0.9688 kB / 0.5865 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.4102, allocations: 5.703 kB / 0.5865 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4102, allocations: 5.203 kB / 0.5865 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.4102, allocations: 4.734 kB / 0.5865 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005614/0.4108, allocations: 247.6 kB / 0.5868 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.4108, allocations: 82.78 kB / 0.5868 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.4109, allocations: 6.797 kB / 0.5868 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.411, allocations: 6.891 kB / 0.5868 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.602e-05/0.411, allocations: 9.25 kB / 0.5869 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.4111, allocations: 7.984 kB / 0.5869 GB, free: 15.53 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.956e-05/0.4111, allocations: 80.22 kB / 0.5869 GB, free: 15.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4111, allocations: 3.938 kB / 0.5869 GB, free: 15.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003218/0.4115, allocations: 39.69 kB / 0.587 GB, free: 15.44 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.0009696/0.4124, allocations: 0.8141 MB / 0.5878 GB, free: 14.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003692/0.4128, allocations: 89.58 kB / 0.5879 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4128, allocations: 0 / 0.5879 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.413, allocations: 47.33 kB / 0.5879 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.4133, allocations: 9.969 kB / 0.5879 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.4156, allocations: 1.595 MB / 0.5895 GB, free: 13.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.4159, allocations: 0.6911 MB / 0.5902 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.364e-05/0.416, allocations: 9.219 kB / 0.5902 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.636e-05/0.416, allocations: 24.5 kB / 0.5902 GB, free: 12.6 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4161, allocations: 4 kB / 0.5902 GB, free: 12.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.4377, allocations: 2.273 MB / 0.5924 GB, free: 12.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.311/7.749, allocations: 2.469 kB / 0.5924 GB, free: 12.23 MB / 446.1 MB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)