Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.005694/0.005694, allocations: 97.78 kB / 15.73 MB, free: 5.996 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.001212/0.001213, allocations: 186 kB / 16.67 MB, free: 5.926 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.558/2.558, allocations: 437 MB / 0.7105 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 59.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2913, allocations: 151.6 MB / 1.166 GB, free: 7.293 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002596/0.2939, allocations: 1.481 MB / 1.168 GB, free: 5.797 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.295, allocations: 0.6305 MB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.626e-05/0.2951, allocations: 0 / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.898e-05/0.2951, allocations: 3.938 kB / 1.168 GB, free: 5.16 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.899e-05/0.2952, allocations: 7.922 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000641/0.2959, allocations: 167.3 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.059e-05/0.296, allocations: 51.84 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.908e-05/0.296, allocations: 7.984 kB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.288e-05/0.2961, allocations: 15.94 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.145e-05/0.2961, allocations: 31.89 kB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.2962, allocations: 4 kB / 1.169 GB, free: 4.879 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004919/0.2967, allocations: 343.3 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.011e-05/0.2967, allocations: 15.92 kB / 1.169 GB, free: 4.527 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.654e-05/0.2967, allocations: 27.86 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003127/0.2971, allocations: 179.7 kB / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2971, allocations: 3.938 kB / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2971, allocations: 0 / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.251e-06/0.2971, allocations: 0 / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005936/0.2977, allocations: 402.9 kB / 1.169 GB, free: 3.875 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2977, allocations: 12.03 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.981e-05/0.2978, allocations: 38.73 kB / 1.169 GB, free: 3.816 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.2978, allocations: 4.938 kB / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.2979, allocations: 172.3 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.298, allocations: 4.375 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/0.298, allocations: 12.36 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.2982, allocations: 86.2 kB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.2983, allocations: 3.938 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.2983, allocations: 0 / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2983, allocations: 0 / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.2985, allocations: 47.97 kB / 1.17 GB, free: 3.449 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005516/0.2991, allocations: 332.6 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.2994, allocations: 78.53 kB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.2995, allocations: 24.84 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.2995, allocations: 15.94 kB / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.2996, allocations: 34.56 kB / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.2996, allocations: 0 / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.001614/0.3012, allocations: 0.6463 MB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.3012, allocations: 51.41 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.101e-05/0.3013, allocations: 105.8 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3013, allocations: 25.7 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.3014, allocations: 92.09 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.3014, allocations: 43.58 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.3015, allocations: 33.7 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.693e-05/0.3016, allocations: 318.8 kB / 1.172 GB, free: 1.461 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.3017, allocations: 27.97 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.3019, allocations: 35.48 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.3021, allocations: 80.8 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.3021, allocations: 3.938 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003083/0.3024, allocations: 117.8 kB / 1.172 GB, free: 1.195 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3025, allocations: 5.875 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.3025, allocations: 4 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.3025, allocations: 0 / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.3027, allocations: 27.97 kB / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3027, allocations: 3.938 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.616e-05/0.3027, allocations: 4 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.3028, allocations: 8 kB / 1.172 GB, free: 1.145 MB / 0.92 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 8.058e-05/0.3028, allocations: 124.6 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.3029, allocations: 7.938 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003801/0.3033, allocations: 121.7 kB / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3033, allocations: 0 / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3033, allocations: 3.938 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3033, allocations: 192 / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005581/0.3039, allocations: 394.5 kB / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3039, allocations: 0 / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.304, allocations: 27.97 kB / 1.172 GB, free: 416 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.3041, allocations: 3.938 kB / 1.172 GB, free: 412 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.3041, allocations: 8 kB / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3041, allocations: 0 / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3041, allocations: 0 / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.3046, allocations: 251.3 kB / 1.173 GB, free: 136 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-05/0.3046, allocations: 89.08 kB / 1.173 GB, free: 28 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.855e-05/0.3047, allocations: 7.938 kB / 1.173 GB, free: 20 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.3048, allocations: 4 kB / 1.173 GB, free: 16 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.3048, allocations: 7.984 kB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.3048, allocations: 8 kB / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of sorting global known variables: time 4.894e-05/0.3049, allocations: 75.28 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3049, allocations: 0 / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002913/0.3052, allocations: 47.92 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0008734/0.3061, allocations: 0.8175 MB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003266/0.3064, allocations: 87.95 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3064, allocations: 0 / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.3066, allocations: 43.97 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.3069, allocations: 12 kB / 1.174 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.309, allocations: 1.607 MB / 1.175 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.3092, allocations: 0.6889 MB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.582e-05/0.3093, allocations: 12.67 kB / 1.176 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.289e-05/0.3093, allocations: 27.42 kB / 1.176 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of SimCode: time 3.1e-07/0.3093, allocations: 0 / 1.176 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02011/0.3295, allocations: 2.339 MB / 1.178 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.05, allocations: 9.906 kB / 1.178 GB, free: 10.29 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)