Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_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.001551/0.001551, 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.001294/0.001294, allocations: 193.2 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.481/1.481, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.809/2.809, allocations: 469.4 MB / 0.742 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 69.09 kB / 0.9083 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2943, allocations: 159.1 MB / 1.064 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002402/0.2967, allocations: 1.289 MB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009974/0.2977, allocations: 0.6127 MB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.708e-05/0.2978, allocations: 0 / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.646e-05/0.2978, allocations: 3.938 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.654e-05/0.2978, allocations: 4 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005974/0.2985, allocations: 155.4 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.118e-05/0.2985, allocations: 31.86 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.686e-05/0.2986, allocations: 7.938 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.338e-05/0.2986, allocations: 8 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.251e-05/0.2986, allocations: 19.91 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.2987, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005052/0.2992, allocations: 339.4 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.514e-05/0.2992, allocations: 3.984 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.2992, allocations: 23.92 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.2995, allocations: 151.9 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2995, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2995, allocations: 4 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.645e-06/0.2996, allocations: 0 / 1.066 GB, free: 11.78 MB / 0.8262 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.0004304/0.3, allocations: 363.4 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3, allocations: 12.03 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.3001, allocations: 38.69 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.169e-05/0.3001, allocations: 12.78 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.3002, allocations: 168.3 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.3003, allocations: 4.375 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.3003, allocations: 384 / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.3004, allocations: 54.23 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.3004, allocations: 3.938 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.3004, allocations: 0 / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3004, allocations: 4 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.948e-05/0.3005, allocations: 15.98 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.3007, allocations: 165.6 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.3008, allocations: 70.55 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.133e-05/0.3008, allocations: 28.84 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.3008, allocations: 0 / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.3009, allocations: 34.56 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.3009, allocations: 0 / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001095/0.302, allocations: 0.5915 MB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.302, allocations: 55.41 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.9e-05/0.3021, allocations: 97.8 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.3021, allocations: 29.7 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.739e-05/0.3021, allocations: 84.12 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.3022, allocations: 43.53 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.3022, allocations: 25.7 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.3023, allocations: 318.8 kB / 1.068 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-05/0.3024, allocations: 19.98 kB / 1.068 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.831e-05/0.3024, allocations: 27.48 kB / 1.068 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.78e-05/0.3025, allocations: 56.86 kB / 1.068 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.3025, allocations: 0 / 1.068 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000143/0.3027, allocations: 93.61 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.3027, allocations: 8 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3027, allocations: 4 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.3027, allocations: 0 / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.3028, allocations: 19.94 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3028, allocations: 4 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.805e-05/0.3029, allocations: 7.984 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.3029, allocations: 4 kB / 1.069 GB, free: 9.035 MB / 0.8262 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 6.663e-05/0.303, allocations: 109.8 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.303, allocations: 11.84 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.3032, allocations: 109.5 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.3032, allocations: 4 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3032, allocations: 0 / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3032, allocations: 4.078 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003666/0.3036, allocations: 354.4 kB / 1.069 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3036, allocations: 4 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.3037, allocations: 19.94 kB / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3037, allocations: 0 / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3037, allocations: 8 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3037, allocations: 8 kB / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3038, allocations: 0 / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.304, allocations: 211.4 kB / 1.069 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.304, allocations: 81.14 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.304, allocations: 7.938 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.572e-05/0.3041, allocations: 0 / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.332e-05/0.3042, allocations: 11.92 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.3042, allocations: 8.062 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.064e-05/0.3042, allocations: 83.28 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3042, allocations: 0 / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000269/0.3045, allocations: 39.98 kB / 1.07 GB, free: 7.875 MB / 0.8262 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.0006073/0.3051, allocations: 0.7757 MB / 1.07 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000161/0.3053, allocations: 76.02 kB / 1.07 GB, free: 7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3053, allocations: 0 / 1.07 GB, free: 7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.287e-05/0.3053, allocations: 39.97 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.3056, allocations: 8 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.3071, allocations: 1.492 MB / 1.072 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.3074, allocations: 0.6962 MB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.702e-05/0.3075, allocations: 4 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.89e-05/0.3075, allocations: 23.42 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3075, allocations: 3.938 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/0.3313, allocations: 2.034 MB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.34/7.671, allocations: 8.375 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)