Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_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.004764/0.004764, allocations: 101.1 kB / 15.73 MB, free: 6.062 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.001295/0.001295, allocations: 189.7 kB / 16.67 MB, free: 5.973 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002441/0.002441, allocations: 283.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.206/1.206, allocations: 178.5 MB / 0.5074 GB, free: 12.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002696/0.002696, allocations: 103.8 kB / 0.6943 GB, free: 15.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.4096, allocations: 89.12 MB / 0.7813 GB, free: 1.105 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002091/0.4118, allocations: 1.282 MB / 0.7826 GB, free: 96 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.4129, allocations: 0.6208 MB / 0.7832 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.881e-05/0.4129, allocations: 0 / 0.7832 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.728e-05/0.413, allocations: 1.719 kB / 0.7832 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.293e-05/0.413, allocations: 7.938 kB / 0.7832 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006176/0.4136, allocations: 152.6 kB / 0.7833 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.799e-05/0.4137, allocations: 26.02 kB / 0.7834 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.936e-05/0.4138, allocations: 2.188 kB / 0.7834 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.864e-05/0.4138, allocations: 13.88 kB / 0.7834 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.453e-05/0.4139, allocations: 12.25 kB / 0.7834 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.4139, allocations: 5.469 kB / 0.7834 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005403/0.4144, allocations: 343.6 kB / 0.7837 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.013e-05/0.4145, allocations: 17.47 kB / 0.7837 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.057e-05/0.4145, allocations: 13.38 kB / 0.7838 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.4148, allocations: 156.3 kB / 0.7839 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.4148, allocations: 0 / 0.7839 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4148, allocations: 0 / 0.7839 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.4148, allocations: 0 / 0.7839 GB, free: 15.15 MB / 0.5606 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.000466/0.4153, allocations: 371.5 kB / 0.7843 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.4153, allocations: 8.562 kB / 0.7843 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.305e-05/0.4154, allocations: 36.44 kB / 0.7843 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.936e-05/0.4154, allocations: 2.625 kB / 0.7843 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.4156, allocations: 170.1 kB / 0.7845 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.4156, allocations: 2.094 kB / 0.7845 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.4156, allocations: 7.406 kB / 0.7845 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.4158, allocations: 53.2 kB / 0.7845 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.4158, allocations: 3.938 kB / 0.7845 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.4158, allocations: 9.109 kB / 0.7845 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.4158, allocations: 1.125 kB / 0.7845 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.377e-05/0.4159, allocations: 19.08 kB / 0.7846 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001954/0.4161, allocations: 157.6 kB / 0.7847 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.4162, allocations: 63.84 kB / 0.7848 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.916e-05/0.4163, allocations: 25.81 kB / 0.7848 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.4163, allocations: 5.531 kB / 0.7848 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.4163, allocations: 39.53 kB / 0.7848 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.4163, allocations: 0 / 0.7848 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001239/0.4176, allocations: 0.5958 MB / 0.7854 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.4176, allocations: 52.59 kB / 0.7855 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.362e-05/0.4177, allocations: 96.53 kB / 0.7856 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.4177, allocations: 31.3 kB / 0.7856 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.13e-05/0.4178, allocations: 80.27 kB / 0.7857 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.4178, allocations: 43.94 kB / 0.7857 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.4179, allocations: 26.34 kB / 0.7857 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.418, allocations: 316.1 kB / 0.786 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.518e-05/0.4181, allocations: 20.91 kB / 0.7861 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.046e-05/0.4181, allocations: 20.58 kB / 0.7861 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001008/0.4182, allocations: 58.2 kB / 0.7861 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4182, allocations: 1.562 kB / 0.7861 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001638/0.4184, allocations: 107.6 kB / 0.7862 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.4184, allocations: 9.125 kB / 0.7862 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.4184, allocations: 0 / 0.7862 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4185, allocations: 1.25 kB / 0.7862 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.4186, allocations: 21.58 kB / 0.7863 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.4186, allocations: 1.469 kB / 0.7863 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/0.4186, allocations: 4 kB / 0.7863 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.4186, allocations: 6.875 kB / 0.7863 GB, free: 12.78 MB / 0.5606 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 9.1e-05/0.4187, allocations: 116.4 kB / 0.7864 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.4188, allocations: 11.17 kB / 0.7864 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002109/0.419, allocations: 114.7 kB / 0.7865 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.419, allocations: 1.062 kB / 0.7865 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.419, allocations: 1.375 kB / 0.7865 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.419, allocations: 0 / 0.7865 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004423/0.4195, allocations: 356.5 kB / 0.7869 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.4195, allocations: 1.188 kB / 0.7869 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.4196, allocations: 20.47 kB / 0.7869 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4196, allocations: 1.188 kB / 0.7869 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.4196, allocations: 5.109 kB / 0.7869 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4196, allocations: 5.062 kB / 0.7869 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.4196, allocations: 0 / 0.7869 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002702/0.4199, allocations: 221.9 kB / 0.7871 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.472e-05/0.42, allocations: 78.08 kB / 0.7872 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.42, allocations: 1.219 kB / 0.7872 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.005e-05/0.4201, allocations: 10.77 kB / 0.7872 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.4201, allocations: 6.953 kB / 0.7872 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.4201, allocations: 3.281 kB / 0.7872 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.236e-05/0.4202, allocations: 81.66 kB / 0.7873 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4202, allocations: 0 / 0.7873 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002832/0.4205, allocations: 40.52 kB / 0.7873 GB, free: 11.82 MB / 0.5606 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.0006658/0.4211, allocations: 0.787 MB / 0.7881 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001786/0.4213, allocations: 62.23 kB / 0.7881 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4213, allocations: 3.938 kB / 0.7881 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.486e-05/0.4214, allocations: 37.67 kB / 0.7882 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.4216, allocations: 12.91 kB / 0.7882 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.4233, allocations: 1.497 MB / 0.7897 GB, free: 9.66 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.4236, allocations: 0.6877 MB / 0.7903 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.775e-05/0.4236, allocations: 17.55 kB / 0.7903 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.4237, allocations: 17 kB / 0.7904 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of SimCode: time 3.3e-07/0.4237, allocations: 0 / 0.7904 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02536/0.4491, allocations: 2.081 MB / 0.7924 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.383/8.832, allocations: 5.344 kB / 0.7924 GB, free: 7.883 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)