Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.001757/0.001757, allocations: 108 kB / 15.6 MB, free: 132 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.001914/0.001914, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002433/0.002433, allocations: 275 kB / 290.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.042/1.042, allocations: 178.6 MB / 0.5073 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002704/0.002704, allocations: 102.6 kB / 0.6065 GB, free: 24.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1819, allocations: 89.15 MB / 0.6936 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002483/0.1844, allocations: 1.26 MB / 0.6948 GB, free: 2.945 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.1856, allocations: 0.6195 MB / 0.6954 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.298e-05/0.1857, allocations: 0.8125 kB / 0.6954 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.405e-05/0.1857, allocations: 0 / 0.6954 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.502e-05/0.1858, allocations: 11.39 kB / 0.6955 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.1863, allocations: 144.9 kB / 0.6956 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.356e-05/0.1864, allocations: 19.92 kB / 0.6956 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.988e-05/0.1864, allocations: 4 kB / 0.6956 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.987e-05/0.1865, allocations: 7.938 kB / 0.6956 GB, free: 2.148 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.523e-05/0.1865, allocations: 11.97 kB / 0.6956 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.1865, allocations: 4 kB / 0.6956 GB, free: 2.133 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/0.1871, allocations: 340 kB / 0.696 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.657e-05/0.1871, allocations: 11.92 kB / 0.696 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.177e-05/0.1871, allocations: 5.25 kB / 0.696 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.1874, allocations: 147.9 kB / 0.6961 GB, free: 1.641 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1874, allocations: 0 / 0.6961 GB, free: 1.641 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1874, allocations: 0.6562 kB / 0.6961 GB, free: 1.641 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1874, allocations: 0 / 0.6961 GB, free: 1.641 MB / 494.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.0004572/0.1879, allocations: 363.4 kB / 0.6965 GB, free: 1.234 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.1879, allocations: 8.031 kB / 0.6965 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.355e-05/0.188, allocations: 42.69 kB / 0.6965 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.188, allocations: 4.922 kB / 0.6965 GB, free: 1.172 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.1881, allocations: 164.4 kB / 0.6967 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.1881, allocations: 4.375 kB / 0.6967 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.1882, allocations: 4.312 kB / 0.6967 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.1883, allocations: 42.25 kB / 0.6967 GB, free: 0.918 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1883, allocations: 3.938 kB / 0.6967 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.1883, allocations: 4 kB / 0.6967 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1883, allocations: 0 / 0.6967 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.879e-05/0.1884, allocations: 12 kB / 0.6967 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001872/0.1886, allocations: 153.7 kB / 0.6969 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.1887, allocations: 46.55 kB / 0.6969 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.668e-05/0.1888, allocations: 20.94 kB / 0.697 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.1888, allocations: 7.938 kB / 0.697 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.1888, allocations: 30.56 kB / 0.697 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.1889, allocations: 4 kB / 0.697 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006388/0.1895, allocations: 314.1 kB / 0.6973 GB, free: 216 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.1895, allocations: 55.39 kB / 0.6973 GB, free: 148 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.967e-05/0.1896, allocations: 93.86 kB / 0.6974 GB, free: 44 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.1896, allocations: 25.7 kB / 0.6975 GB, free: 12 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.834e-05/0.1897, allocations: 88.14 kB / 0.6975 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.1897, allocations: 15.8 kB / 0.6976 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.1898, allocations: 17.72 kB / 0.6976 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1899, allocations: 318.8 kB / 0.6979 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.1899, allocations: 7.984 kB / 0.6979 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.955e-05/0.19, allocations: 12 kB / 0.6979 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.831e-05/0.19, allocations: 36.8 kB / 0.6979 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/0.19, allocations: 0 / 0.6979 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001054/0.1902, allocations: 77.52 kB / 0.698 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1902, allocations: 4 kB / 0.698 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1902, allocations: 0.5156 kB / 0.698 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.1902, allocations: 0 / 0.698 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.33e-05/0.1903, allocations: 20.05 kB / 0.698 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1903, allocations: 0 / 0.698 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.839e-05/0.1903, allocations: 4 kB / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.944e-06/0.1903, allocations: 0 / 0.698 GB, free: 15.39 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 8.39e-05/0.1904, allocations: 117.7 kB / 0.6982 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.244e-05/0.1904, allocations: 7.875 kB / 0.6982 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.1906, allocations: 89.56 kB / 0.6982 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1906, allocations: 0 / 0.6982 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1906, allocations: 0 / 0.6982 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1906, allocations: 0 / 0.6982 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003502/0.1909, allocations: 311.4 kB / 0.6985 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.191, allocations: 0 / 0.6985 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.346e-05/0.191, allocations: 15.98 kB / 0.6986 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.191, allocations: 0 / 0.6986 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.1911, allocations: 4.031 kB / 0.6986 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1911, allocations: 4 kB / 0.6986 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1911, allocations: 3.938 kB / 0.6986 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001864/0.1913, allocations: 176.5 kB / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.625e-05/0.1913, allocations: 85.12 kB / 0.6988 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.1913, allocations: 4 kB / 0.6988 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.488e-05/0.1914, allocations: 0 / 0.6988 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.107e-05/0.1914, allocations: 12.05 kB / 0.6988 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.1914, allocations: 4.188 kB / 0.6988 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.106e-05/0.1915, allocations: 75.28 kB / 0.6989 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1915, allocations: 0 / 0.6989 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002386/0.1917, allocations: 24 kB / 0.6989 GB, free: 14.37 MB / 0.4981 GB 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.0005516/0.1923, allocations: 0.7366 MB / 0.6996 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001155/0.1924, allocations: 43.91 kB / 0.6997 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1924, allocations: 0 / 0.6997 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.987e-05/0.1925, allocations: 16 kB / 0.6997 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.1927, allocations: 11.94 kB / 0.6997 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.194, allocations: 1.311 MB / 0.701 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.1943, allocations: 0.6807 MB / 0.7017 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.309e-05/0.1943, allocations: 8 kB / 0.7017 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.043e-05/0.1943, allocations: 15.38 kB / 0.7017 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1943, allocations: 0 / 0.7017 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.2183, allocations: 1.586 MB / 0.7032 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.386/7.604, allocations: 10.08 kB / 0.7032 GB, free: 9.973 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)