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.007861/0.007861, allocations: 97.39 kB / 15.73 MB, free: 6.039 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.002063/0.002063, allocations: 202.3 kB / 16.68 MB, free: 5.961 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9644/0.9644, allocations: 135.6 MB / 426.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002833/0.002833, allocations: 63.89 kB / 0.5858 GB, free: 3.258 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4027, allocations: 81.02 MB / 0.6649 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001863/0.4046, allocations: 1.273 MB / 0.6661 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008382/0.4055, allocations: 0.6174 MB / 0.6667 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.311e-05/0.4055, allocations: 1.5 kB / 0.6667 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.655e-05/0.4056, allocations: 3.938 kB / 0.6667 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.614e-05/0.4056, allocations: 4 kB / 0.6667 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005401/0.4062, allocations: 150.9 kB / 0.6669 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.962e-05/0.4062, allocations: 18.06 kB / 0.6669 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.4063, allocations: 1.25 kB / 0.6669 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.503e-05/0.4063, allocations: 16.77 kB / 0.6669 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.061e-05/0.4064, allocations: 10.81 kB / 0.6669 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.4064, allocations: 1 kB / 0.6669 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004716/0.4069, allocations: 342.1 kB / 0.6672 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.243e-05/0.4069, allocations: 5.531 kB / 0.6673 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.189e-05/0.4069, allocations: 7.812 kB / 0.6673 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.4071, allocations: 149.7 kB / 0.6674 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.4072, allocations: 0 / 0.6674 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.422e-06/0.4072, allocations: 0 / 0.6674 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.4072, allocations: 0 / 0.6674 GB, free: 4.918 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.0003156/0.4075, allocations: 371.1 kB / 0.6678 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.4075, allocations: 9.406 kB / 0.6678 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.571e-05/0.4076, allocations: 32.03 kB / 0.6678 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.57e-05/0.4076, allocations: 2.281 kB / 0.6678 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.103e-05/0.4077, allocations: 169.7 kB / 0.668 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.4077, allocations: 1.531 kB / 0.668 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.4077, allocations: 7.156 kB / 0.668 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.998e-05/0.4078, allocations: 39.47 kB / 0.668 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.4078, allocations: 0 / 0.668 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.4078, allocations: 0 / 0.668 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.4079, allocations: 1.312 kB / 0.668 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.922e-05/0.4079, allocations: 14.77 kB / 0.668 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000114/0.408, allocations: 158.8 kB / 0.6682 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001563/0.4082, allocations: 55.48 kB / 0.6682 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.856e-05/0.4082, allocations: 18.92 kB / 0.6682 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.4082, allocations: 1.281 kB / 0.6682 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.594e-05/0.4083, allocations: 32.16 kB / 0.6683 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.4083, allocations: 0 / 0.6683 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0004977/0.4088, allocations: 311.1 kB / 0.6686 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.771e-05/0.4088, allocations: 52.72 kB / 0.6686 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.948e-05/0.4088, allocations: 97.55 kB / 0.6687 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.575e-06/0.4089, allocations: 26.8 kB / 0.6687 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.375e-05/0.4089, allocations: 80.14 kB / 0.6688 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.4089, allocations: 34.17 kB / 0.6689 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/0.4089, allocations: 20.16 kB / 0.6689 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.789e-05/0.409, allocations: 318.8 kB / 0.6692 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.321e-05/0.409, allocations: 10.41 kB / 0.6692 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.055e-05/0.409, allocations: 12.38 kB / 0.6692 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.957e-05/0.4091, allocations: 34.69 kB / 0.6692 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.4091, allocations: 5.375 kB / 0.6692 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.038e-05/0.4092, allocations: 56.08 kB / 0.6693 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.4092, allocations: 8.812 kB / 0.6693 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4092, allocations: 5.359 kB / 0.6693 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.4092, allocations: 0 / 0.6693 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.79e-05/0.4093, allocations: 13.38 kB / 0.6693 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.4093, allocations: 1.344 kB / 0.6693 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.732e-05/0.4093, allocations: 8.062 kB / 0.6693 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.4093, allocations: 5.344 kB / 0.6693 GB, free: 2.883 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 4.304e-05/0.4094, allocations: 112.3 kB / 0.6694 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.117e-05/0.4094, allocations: 6.859 kB / 0.6694 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.4095, allocations: 78.36 kB / 0.6695 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4095, allocations: 0 / 0.6695 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4095, allocations: 1.469 kB / 0.6695 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.4095, allocations: 3.938 kB / 0.6695 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002164/0.4098, allocations: 315.6 kB / 0.6698 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4098, allocations: 1.438 kB / 0.6698 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.785e-05/0.4098, allocations: 16.92 kB / 0.6698 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.4098, allocations: 1.156 kB / 0.6698 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.4099, allocations: 1.875 kB / 0.6698 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4099, allocations: 0 / 0.6698 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4099, allocations: 1.156 kB / 0.6698 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/0.41, allocations: 181.5 kB / 0.67 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.666e-05/0.41, allocations: 83.5 kB / 0.6701 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.4101, allocations: 1.281 kB / 0.6701 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.796e-05/0.4101, allocations: 5.125 kB / 0.6701 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.4101, allocations: 6.734 kB / 0.6701 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.4102, allocations: 6.25 kB / 0.6701 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.06e-05/0.4102, allocations: 82.7 kB / 0.6702 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4102, allocations: 0 / 0.6702 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002424/0.4104, allocations: 26.91 kB / 0.6702 GB, free: 1.98 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.0003376/0.4108, allocations: 0.7308 MB / 0.6709 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 9.879e-05/0.4109, allocations: 36.58 kB / 0.671 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4109, allocations: 5.125 kB / 0.671 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.416e-05/0.4109, allocations: 14.81 kB / 0.671 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.4111, allocations: 10.36 kB / 0.671 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009656/0.4121, allocations: 1.329 MB / 0.6723 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.4124, allocations: 0.6825 MB / 0.673 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.455e-05/0.4125, allocations: 7.609 kB / 0.673 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.111e-05/0.4125, allocations: 11.22 kB / 0.673 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.4125, allocations: 0 / 0.673 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02354/0.4361, allocations: 1.625 MB / 0.6746 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.32, allocations: 7.375 kB / 0.6746 GB, free: 14.39 MB / 0.5137 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)