Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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-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_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.007358/0.007358, allocations: 99.11 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.001893/0.001893, allocations: 195.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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9533/0.9533, allocations: 135.5 MB / 426.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 71.89 kB / 0.5857 GB, free: 3.238 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3817, allocations: 81.03 MB / 0.6649 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002127/0.3838, allocations: 1.275 MB / 0.6661 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008218/0.3847, allocations: 0.6194 MB / 0.6667 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.781e-05/0.3847, allocations: 1.531 kB / 0.6667 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.77e-05/0.3848, allocations: 3.938 kB / 0.6667 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.239e-05/0.3848, allocations: 0 / 0.6667 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00054/0.3854, allocations: 153 kB / 0.6669 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.131e-05/0.3854, allocations: 29.36 kB / 0.6669 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4e-05/0.3855, allocations: 6.812 kB / 0.6669 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.037e-05/0.3855, allocations: 9.594 kB / 0.6669 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.807e-05/0.3856, allocations: 20.66 kB / 0.6669 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.3856, allocations: 1.5 kB / 0.6669 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004546/0.3861, allocations: 342.4 kB / 0.6673 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.384e-05/0.3861, allocations: 9.391 kB / 0.6673 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.3861, allocations: 13.48 kB / 0.6673 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002796/0.3864, allocations: 151.3 kB / 0.6674 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3864, allocations: 0 / 0.6674 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3864, allocations: 0.8438 kB / 0.6674 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.3864, 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003303/0.3868, allocations: 374.4 kB / 0.6678 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3868, allocations: 9.281 kB / 0.6678 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.451e-05/0.3868, allocations: 37.38 kB / 0.6678 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.3869, allocations: 7.016 kB / 0.6678 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.893e-05/0.387, allocations: 161.5 kB / 0.668 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.387, allocations: 5.594 kB / 0.668 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/0.387, allocations: 11.75 kB / 0.668 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.3871, allocations: 56.27 kB / 0.6681 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.3871, allocations: 4 kB / 0.6681 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.3872, allocations: 1.125 kB / 0.6681 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3872, allocations: 1.375 kB / 0.6681 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.908e-05/0.3872, allocations: 22.27 kB / 0.6681 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001283/0.3874, allocations: 165.7 kB / 0.6682 GB, free: 4 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.992e-05/0.3874, allocations: 59.89 kB / 0.6683 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.919e-05/0.3875, allocations: 38.06 kB / 0.6683 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.3875, allocations: 5.25 kB / 0.6683 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.403e-05/0.3875, allocations: 35.81 kB / 0.6684 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.3875, allocations: 0 / 0.6684 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0009794/0.3885, allocations: 0.5841 MB / 0.6689 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.186e-05/0.3886, allocations: 56.44 kB / 0.669 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.5e-05/0.3886, allocations: 100 kB / 0.6691 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.347e-06/0.3886, allocations: 27.23 kB / 0.6691 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.514e-05/0.3887, allocations: 81.45 kB / 0.6692 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.3887, allocations: 39.66 kB / 0.6692 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.3887, allocations: 30.7 kB / 0.6693 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.3888, allocations: 320.3 kB / 0.6696 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.104e-05/0.3888, allocations: 23.28 kB / 0.6696 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-05/0.3889, allocations: 23.2 kB / 0.6696 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.57e-05/0.389, allocations: 53.55 kB / 0.6697 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.389, allocations: 0 / 0.6697 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001304/0.3891, allocations: 99.52 kB / 0.6698 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3891, allocations: 5.438 kB / 0.6698 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-06/0.3891, allocations: 0 / 0.6698 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3892, allocations: 1.312 kB / 0.6698 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.3893, allocations: 25.89 kB / 0.6698 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.3893, allocations: 0 / 0.6698 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.401e-05/0.3893, allocations: 5.656 kB / 0.6698 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-06/0.3893, allocations: 3.562 kB / 0.6698 GB, free: 2.551 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 (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.062e-05/0.3894, allocations: 115.3 kB / 0.6699 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.578e-05/0.3894, allocations: 6.516 kB / 0.6699 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.3896, allocations: 116.3 kB / 0.67 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3896, allocations: 5.547 kB / 0.67 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3896, allocations: 0 / 0.67 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3896, allocations: 0 / 0.67 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.3899, allocations: 360.5 kB / 0.6704 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3899, allocations: 0 / 0.6704 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.39, allocations: 18.31 kB / 0.6704 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.39, allocations: 0 / 0.6704 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3901, allocations: 9.953 kB / 0.6704 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3901, allocations: 96 / 0.6704 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3901, allocations: 5.156 kB / 0.6704 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000245/0.3903, allocations: 218.9 kB / 0.6706 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.028e-05/0.3903, allocations: 83.47 kB / 0.6707 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.3904, allocations: 9.125 kB / 0.6707 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.3905, allocations: 5.266 kB / 0.6707 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-05/0.3905, allocations: 11.91 kB / 0.6707 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-06/0.3905, allocations: 2.75 kB / 0.6707 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.828e-05/0.3905, allocations: 80.66 kB / 0.6708 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3905, allocations: 1.219 kB / 0.6708 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002748/0.3908, allocations: 39.8 kB / 0.6708 GB, free: 1.582 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0004301/0.3912, allocations: 0.7792 MB / 0.6716 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001509/0.3914, allocations: 58.05 kB / 0.6717 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3914, allocations: 1.156 kB / 0.6717 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.62e-05/0.3915, allocations: 36.45 kB / 0.6717 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.3917, allocations: 8.75 kB / 0.6717 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.393, allocations: 1.511 MB / 0.6732 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.3934, allocations: 0.6914 MB / 0.6739 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.195e-05/0.3934, allocations: 14.06 kB / 0.6739 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.129e-05/0.3935, allocations: 20.5 kB / 0.6739 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of SimCode: time 5.71e-07/0.3935, allocations: 0 / 0.6739 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.4188, allocations: 2.052 MB / 0.6759 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.252, allocations: 7.5 kB / 0.6759 GB, free: 13.63 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)