Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_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.01045/0.01045, allocations: 100.7 kB / 15.73 MB, free: 6.035 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.001908/0.001909, allocations: 191.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.596/1.596, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.53/2.53, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 66.62 kB / 0.9504 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2842, allocations: 140.4 MB / 1.087 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002506/0.2867, allocations: 1.28 MB / 1.089 GB, free: 0.6797 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.2878, allocations: 0.6128 MB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.157e-05/0.2879, allocations: 0 / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.395e-05/0.2879, allocations: 0 / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.724e-05/0.288, allocations: 3.938 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006782/0.2887, allocations: 145 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.264e-05/0.2888, allocations: 27.91 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.756e-05/0.2888, allocations: 0 / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.7e-05/0.2889, allocations: 7.938 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.817e-05/0.2889, allocations: 15.92 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.2889, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005049/0.2895, allocations: 347.3 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.351e-05/0.2895, allocations: 0 / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.2895, allocations: 7.938 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002768/0.2898, allocations: 143.1 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2898, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.522e-06/0.2898, allocations: 8 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.2898, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 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.0004274/0.2903, allocations: 367.7 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.2903, allocations: 8.031 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.2904, allocations: 30.75 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.537e-05/0.2904, allocations: 8.844 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.2905, allocations: 164.4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.2905, allocations: 4.312 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.2906, allocations: 8.359 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.2907, allocations: 42.25 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.2907, allocations: 3.938 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.2907, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2907, allocations: 4 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.309e-05/0.2908, allocations: 11.94 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001719/0.291, allocations: 153.7 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.2912, allocations: 50.55 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.798e-05/0.2912, allocations: 24.94 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.2913, allocations: 0 / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.2913, allocations: 30.56 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2913, allocations: 0 / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006879/0.292, allocations: 310.2 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.292, allocations: 51.41 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.495e-05/0.2921, allocations: 101.8 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.2922, allocations: 25.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.83e-05/0.2922, allocations: 84.14 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.413e-05/0.2922, allocations: 19.66 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.2923, allocations: 21.7 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2924, allocations: 314.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.873e-05/0.2925, allocations: 12 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.365e-05/0.2925, allocations: 15.92 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.086e-05/0.2926, allocations: 28.86 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2926, allocations: 8 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001061/0.2927, allocations: 73.66 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2927, allocations: 11.94 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2927, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.2927, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.374e-05/0.2928, allocations: 8 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.2928, allocations: 3.984 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.871e-05/0.2929, allocations: 12.06 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.2929, allocations: 3.938 kB / 1.092 GB, free: 13.12 MB / 0.8575 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.844e-05/0.293, allocations: 113.8 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.514e-05/0.293, allocations: 4.453 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.2931, allocations: 69.66 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2931, allocations: 0 / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.2932, allocations: 7.984 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2932, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003582/0.2935, allocations: 315.3 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2935, allocations: 0 / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.36e-05/0.2936, allocations: 12.03 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2936, allocations: 4 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.2936, allocations: 0 / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.2937, allocations: 3.984 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2937, allocations: 3.938 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.2939, allocations: 188.2 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.2939, allocations: 85.09 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.294, allocations: 8.094 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.041e-05/0.294, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.001e-05/0.2941, allocations: 4 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.2941, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.726e-05/0.2941, allocations: 87.27 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2941, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002588/0.2944, allocations: 20 kB / 1.093 GB, free: 12.1 MB / 0.8575 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.0005144/0.2949, allocations: 0.7368 MB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001089/0.295, allocations: 39.92 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.295, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.791e-05/0.2951, allocations: 16 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.2953, allocations: 4 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.2965, allocations: 1.319 MB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.2968, allocations: 0.6807 MB / 1.096 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.066e-05/0.2968, allocations: 8.062 kB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.2968, allocations: 15.44 kB / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of SimCode: time 2.01e-07/0.2968, allocations: 0 / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02014/0.317, allocations: 1.601 MB / 1.097 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.642/7.959, allocations: 14.86 kB / 1.097 GB, free: 7.703 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)