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.00821/0.00821, allocations: 100.8 kB / 15.73 MB, free: 6.027 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.001395/0.001395, allocations: 191 kB / 16.67 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.474/2.474, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 62.97 kB / 0.9504 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2894, allocations: 140.4 MB / 1.087 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002452/0.2919, allocations: 1.269 MB / 1.089 GB, free: 0.7148 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2929, allocations: 0.6128 MB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.663e-05/0.293, allocations: 0 / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.88e-05/0.293, allocations: 0 / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.908e-05/0.2931, allocations: 7.922 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006573/0.2937, allocations: 147.4 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.295e-05/0.2938, allocations: 19.86 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.198e-05/0.2938, allocations: 0 / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.752e-05/0.2939, allocations: 8 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.158e-05/0.2939, allocations: 15.91 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.294, allocations: 0 / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005313/0.2945, allocations: 343.3 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.2945, allocations: 3.984 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.2946, allocations: 11.94 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.2948, allocations: 147.8 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2949, allocations: 7.938 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2949, allocations: 7.938 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2949, allocations: 0 / 1.09 GB, free: 15.39 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.0004032/0.2953, allocations: 355.1 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2953, allocations: 8.031 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.999e-05/0.2954, allocations: 30.75 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.2954, allocations: 8.891 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.2955, allocations: 172.3 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2955, allocations: 384 / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.2956, allocations: 12.31 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.2957, allocations: 42.25 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2957, allocations: 3.938 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.2957, allocations: 4 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.2957, allocations: 0 / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.837e-05/0.2958, allocations: 7.938 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001914/0.296, allocations: 161.7 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.2962, allocations: 38.61 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.544e-05/0.2962, allocations: 24.94 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.2962, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.2963, allocations: 30.56 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 2.765e-06/0.2963, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006375/0.2969, allocations: 318.2 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.2969, allocations: 51.41 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.748e-05/0.297, allocations: 105.8 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.297, allocations: 25.7 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.987e-05/0.2971, allocations: 80.14 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.2971, allocations: 27.78 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.2972, allocations: 17.72 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.2973, allocations: 310.8 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.05e-05/0.2973, allocations: 15.98 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.404e-05/0.2973, allocations: 15.94 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.187e-05/0.2974, allocations: 37 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.2974, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001078/0.2975, allocations: 73.55 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2975, allocations: 8 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2975, allocations: 0 / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.2976, allocations: 0 / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.6e-05/0.2976, allocations: 11.98 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.2976, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.984e-05/0.2977, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.2977, allocations: 0 / 1.092 GB, free: 13.15 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 7.264e-05/0.2978, allocations: 121.8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.492e-05/0.2978, allocations: 8.406 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.2979, allocations: 73.7 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-06/0.2979, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.2979, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.298, allocations: 3.984 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003133/0.2983, allocations: 311.4 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2983, allocations: 0 / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.762e-05/0.2984, allocations: 16.03 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.2984, allocations: 3.984 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.2984, allocations: 4 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.2984, allocations: 0 / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2984, allocations: 4 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001876/0.2986, allocations: 180.3 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.456e-05/0.2987, allocations: 85.05 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.2987, allocations: 8.094 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.058e-05/0.2988, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.2988, allocations: 4 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.2988, allocations: 7.984 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.289e-05/0.2988, allocations: 79.28 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2989, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002557/0.2991, allocations: 19.94 kB / 1.093 GB, free: 12.12 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.0005067/0.2996, allocations: 0.7405 MB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001025/0.2997, allocations: 35.92 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.2997, allocations: 0 / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.834e-05/0.2998, allocations: 15.94 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.3, allocations: 5.422 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.3012, allocations: 1.323 MB / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.3015, allocations: 0.6845 MB / 1.096 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.707e-05/0.3015, allocations: 12.36 kB / 1.096 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.58e-05/0.3016, allocations: 15.42 kB / 1.096 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.3016, allocations: 0 / 1.096 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/0.3255, allocations: 1.593 MB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/8.089, allocations: 18.28 kB / 1.097 GB, free: 7.715 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)