Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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_DerivativeCheck,fileNamePrefix="Buildings_latest_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_latest_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.00444/0.00444, allocations: 99.77 kB / 15.73 MB, free: 6.02 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.001277/0.001277, allocations: 193.7 kB / 16.67 MB, free: 5.934 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.799/2.799, allocations: 482.4 MB / 0.7548 GB, free: 6.859 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 72.33 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2864, allocations: 162.2 MB / 1.241 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002198/0.2886, allocations: 1.277 MB / 1.243 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.2896, allocations: 0.6166 MB / 1.243 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.2897, allocations: 0 / 1.243 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.2897, allocations: 4 kB / 1.243 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.72e-05/0.2897, allocations: 3.938 kB / 1.243 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.2902, allocations: 151.4 kB / 1.243 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.268e-05/0.2903, allocations: 15.92 kB / 1.243 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.138e-05/0.2903, allocations: 4 kB / 1.243 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.474e-05/0.2904, allocations: 11.94 kB / 1.243 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.311e-05/0.2904, allocations: 7.984 kB / 1.243 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.2904, allocations: 0 / 1.243 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005423/0.291, allocations: 343.3 kB / 1.244 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.291, allocations: 4 kB / 1.244 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.192e-05/0.291, allocations: 11.94 kB / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.2913, allocations: 147.8 kB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2913, allocations: 3.984 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2913, allocations: 4 kB / 1.244 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.655e-06/0.2913, allocations: 0 / 1.244 GB, free: 6.668 MB / 0.9669 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.0004217/0.2917, allocations: 359.1 kB / 1.244 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2918, allocations: 8.031 kB / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.2918, allocations: 34.75 kB / 1.244 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.196e-05/0.2918, allocations: 0.9375 kB / 1.244 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.292, allocations: 172.3 kB / 1.245 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.292, allocations: 8.375 kB / 1.245 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.292, allocations: 384 / 1.245 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.91e-05/0.2921, allocations: 54.12 kB / 1.245 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.2921, allocations: 3.938 kB / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.2922, allocations: 0 / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.2922, allocations: 0 / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.652e-05/0.2922, allocations: 12 kB / 1.245 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/0.2924, allocations: 157.7 kB / 1.245 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.2926, allocations: 38.61 kB / 1.245 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.52e-05/0.2926, allocations: 28.92 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.2926, allocations: 3.938 kB / 1.245 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.2927, allocations: 34.56 kB / 1.245 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.2927, allocations: 0 / 1.245 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0005839/0.2933, allocations: 302.3 kB / 1.245 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.2933, allocations: 51.41 kB / 1.245 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.189e-05/0.2934, allocations: 105.8 kB / 1.245 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.2934, allocations: 25.7 kB / 1.245 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.81e-05/0.2935, allocations: 84.14 kB / 1.245 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.628e-05/0.2935, allocations: 27.72 kB / 1.245 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.654e-05/0.2935, allocations: 21.7 kB / 1.245 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2937, allocations: 314.8 kB / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.86e-05/0.2937, allocations: 11.98 kB / 1.246 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.293e-05/0.2937, allocations: 12 kB / 1.246 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.292e-05/0.2938, allocations: 36.94 kB / 1.246 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.2938, allocations: 4 kB / 1.246 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001135/0.2939, allocations: 73.58 kB / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.294, allocations: 4 kB / 1.246 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.294, allocations: 0 / 1.246 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.294, allocations: 0 / 1.246 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.463e-05/0.294, allocations: 15.98 kB / 1.246 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.294, allocations: 0 / 1.246 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.604e-05/0.2941, allocations: 0 / 1.246 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-06/0.2941, allocations: 0 / 1.246 GB, free: 4.422 MB / 0.9669 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.972e-05/0.2942, allocations: 122.3 kB / 1.246 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.2942, allocations: 3.938 kB / 1.246 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.2943, allocations: 73.64 kB / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2943, allocations: 0 / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2944, allocations: 0 / 1.246 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.2944, allocations: 3.938 kB / 1.246 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.2947, allocations: 319.5 kB / 1.246 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.2947, allocations: 4 kB / 1.246 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.207e-05/0.2948, allocations: 12.03 kB / 1.246 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2948, allocations: 4 kB / 1.246 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.2948, allocations: 7.984 kB / 1.246 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2948, allocations: 0 / 1.246 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2948, allocations: 0 / 1.246 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.295, allocations: 184.2 kB / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.021e-05/0.2951, allocations: 85.12 kB / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.2951, allocations: 64 / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.376e-05/0.2952, allocations: 8 kB / 1.247 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.2952, allocations: 4 kB / 1.247 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2952, allocations: 7.984 kB / 1.247 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.99e-05/0.2953, allocations: 75.8 kB / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2953, allocations: 0 / 1.247 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002403/0.2955, allocations: 19.94 kB / 1.247 GB, free: 3.387 MB / 0.9669 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.0005547/0.2961, allocations: 0.7443 MB / 1.248 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 9.524e-05/0.2962, allocations: 31.98 kB / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.2962, allocations: 0 / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.38e-05/0.2963, allocations: 23.88 kB / 1.248 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.2965, allocations: 6.234 kB / 1.248 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.2977, allocations: 1.326 MB / 1.249 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.2981, allocations: 0.6807 MB / 1.25 GB, free: 448 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.12e-05/0.2981, allocations: 12.36 kB / 1.25 GB, free: 436 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.573e-05/0.2981, allocations: 11.44 kB / 1.25 GB, free: 428 kB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.2981, allocations: 0 / 1.25 GB, free: 428 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.321, allocations: 1.604 MB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.621/7.942, allocations: 5.938 kB / 1.251 GB, free: 14.98 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)