Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_DerivativeCheck2,fileNamePrefix="Buildings_9_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_9_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.007716/0.007716, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.00181/0.00181, allocations: 192.1 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.34/2.34, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 67.89 kB / 0.9504 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9004/0.9019, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002518/0.9045, allocations: 1.293 MB / 1.089 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.9056, allocations: 0.6212 MB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.773e-05/0.9056, allocations: 3.938 kB / 1.089 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.507e-05/0.9057, allocations: 0.6094 kB / 1.089 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.554e-05/0.9058, allocations: 5.75 kB / 1.089 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007639/0.9065, allocations: 149.5 kB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.627e-05/0.9066, allocations: 30.5 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.792e-05/0.9067, allocations: 1.781 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.03e-05/0.9067, allocations: 11.72 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.307e-05/0.9068, allocations: 16.53 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.9068, allocations: 1.312 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006455/0.9075, allocations: 346.6 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.9075, allocations: 6 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.9075, allocations: 19.17 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.9079, allocations: 149.6 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.9079, allocations: 4 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.485e-06/0.9079, allocations: 1.125 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.9079, allocations: 0 / 1.09 GB, free: 3.672 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000414/0.9083, allocations: 370 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.9084, allocations: 9 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.149e-05/0.9084, allocations: 34.17 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.488e-05/0.9085, allocations: 6.922 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.015e-05/0.9086, allocations: 166.2 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.9086, allocations: 7.25 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/0.9086, allocations: 7.719 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.9087, allocations: 54.02 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.9088, allocations: 5.125 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.9088, allocations: 0 / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.9088, allocations: 1.094 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.099e-05/0.9089, allocations: 18.52 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.909, allocations: 171.2 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.9092, allocations: 65.58 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.929e-05/0.9092, allocations: 28.16 kB / 1.091 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.9092, allocations: 1.578 kB / 1.091 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.9093, allocations: 32.34 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.9093, allocations: 0 / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.00115/0.9104, allocations: 0.5952 MB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.9105, allocations: 52.88 kB / 1.092 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.581e-05/0.9105, allocations: 93.7 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.9106, allocations: 31.23 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.807e-05/0.9106, allocations: 81.56 kB / 1.092 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/0.9106, allocations: 39.95 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.953e-05/0.9107, allocations: 27.33 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.842e-05/0.9107, allocations: 322.8 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.745e-05/0.9108, allocations: 18.91 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.954e-05/0.9108, allocations: 31.5 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.9109, allocations: 53.09 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.911, allocations: 4.719 kB / 1.092 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001609/0.9111, allocations: 96.62 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.9111, allocations: 5.344 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.9112, allocations: 0.8125 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.9112, allocations: 0.75 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.9113, allocations: 29.06 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.9113, allocations: 0.6875 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.906e-05/0.9114, allocations: 4.844 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.9114, allocations: 7.859 kB / 1.092 GB, free: 1.387 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 (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.426e-05/0.9114, allocations: 112.6 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.042e-05/0.9115, allocations: 11.19 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.9117, allocations: 109.1 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.9117, allocations: 1.797 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.9117, allocations: 5 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.9117, allocations: 0.5156 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004142/0.9121, allocations: 356.8 kB / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.9122, allocations: 0 / 1.093 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.9123, allocations: 24.06 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.9123, allocations: 1.422 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.9123, allocations: 1.469 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.9123, allocations: 5.469 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.9123, allocations: 0 / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.9126, allocations: 223.2 kB / 1.093 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/0.9126, allocations: 84.02 kB / 1.093 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.9126, allocations: 1.766 kB / 1.093 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.403e-05/0.9127, allocations: 5.781 kB / 1.093 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.9128, allocations: 5.859 kB / 1.093 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.9128, allocations: 4.359 kB / 1.093 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.417e-05/0.9128, allocations: 81.31 kB / 1.093 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/0.9128, allocations: 1.156 kB / 1.093 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003305/0.9132, allocations: 36.52 kB / 1.093 GB, free: 492 kB / 0.8575 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.0007115/0.9139, allocations: 0.7808 MB / 1.094 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001932/0.9141, allocations: 64.77 kB / 1.094 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.9141, allocations: 0 / 1.094 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.036e-05/0.9142, allocations: 37.03 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.9144, allocations: 11.06 kB / 1.094 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.9161, allocations: 1.508 MB / 1.096 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.9164, allocations: 0.689 MB / 1.096 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.774e-05/0.9165, allocations: 15.67 kB / 1.096 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.229e-05/0.9165, allocations: 18.64 kB / 1.097 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of SimCode: time 5.31e-07/0.9166, allocations: 0 / 1.097 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.9394, allocations: 2.073 MB / 1.099 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.418/8.358, allocations: 9.812 kB / 1.099 GB, free: 13.27 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)