Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.004333/0.004334, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001266/0.001266, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 482.4 MB / 0.7548 GB, free: 6.891 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 69.02 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2811, allocations: 162.2 MB / 1.241 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002256/0.2834, allocations: 1.286 MB / 1.243 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.2845, allocations: 0.6167 MB / 1.243 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.993e-05/0.2845, allocations: 0 / 1.243 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.2846, allocations: 0 / 1.243 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.546e-05/0.2846, allocations: 3.938 kB / 1.243 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005115/0.2851, allocations: 139.4 kB / 1.243 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.244e-05/0.2852, allocations: 31.91 kB / 1.243 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.032e-05/0.2852, allocations: 0 / 1.243 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.992e-05/0.2853, allocations: 7.938 kB / 1.243 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.921e-05/0.2853, allocations: 15.92 kB / 1.243 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.818e-06/0.2853, allocations: 0 / 1.243 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005559/0.2859, allocations: 347.3 kB / 1.244 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.517e-06/0.2859, allocations: 0 / 1.244 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.141e-05/0.2859, allocations: 7.938 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.2862, allocations: 147.8 kB / 1.244 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2862, allocations: 4 kB / 1.244 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2862, allocations: 0 / 1.244 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.2862, allocations: 4 kB / 1.244 GB, free: 6.676 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.000425/0.2867, allocations: 363.1 kB / 1.244 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.2867, allocations: 8.031 kB / 1.244 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.943e-05/0.2867, allocations: 34.75 kB / 1.244 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.2868, allocations: 4.938 kB / 1.244 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.2869, allocations: 172.3 kB / 1.245 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.2869, allocations: 384 / 1.245 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.673e-05/0.287, allocations: 4.375 kB / 1.245 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.602e-05/0.2871, allocations: 38.25 kB / 1.245 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2871, allocations: 7.938 kB / 1.245 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.505e-06/0.2871, allocations: 7.938 kB / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.2871, allocations: 0 / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.016e-05/0.2871, allocations: 8 kB / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.2873, allocations: 165.6 kB / 1.245 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.2875, allocations: 42.61 kB / 1.245 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.52e-05/0.2876, allocations: 24.92 kB / 1.245 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.2876, allocations: 4 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.2876, allocations: 34.5 kB / 1.245 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.2876, allocations: 0 / 1.245 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0005973/0.2882, allocations: 302.3 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.2883, allocations: 51.41 kB / 1.245 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.087e-05/0.2884, allocations: 101.8 kB / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.2884, allocations: 29.7 kB / 1.245 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.312e-05/0.2884, allocations: 80.14 kB / 1.245 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.2885, allocations: 23.8 kB / 1.245 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.2885, allocations: 21.7 kB / 1.245 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.2886, allocations: 310.8 kB / 1.246 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.779e-05/0.2887, allocations: 12 kB / 1.246 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.831e-05/0.2887, allocations: 15.98 kB / 1.246 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.598e-05/0.2888, allocations: 44.92 kB / 1.246 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.2888, allocations: 4 kB / 1.246 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001137/0.2889, allocations: 69.52 kB / 1.246 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.2889, allocations: 8 kB / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.2889, allocations: 0 / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.289, allocations: 0 / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.058e-05/0.289, allocations: 8 kB / 1.246 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.289, allocations: 3.984 kB / 1.246 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.289, allocations: 4 kB / 1.246 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-06/0.2891, allocations: 0 / 1.246 GB, free: 4.426 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 8.288e-05/0.2891, allocations: 121.9 kB / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.2892, allocations: 3.938 kB / 1.246 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001517/0.2893, allocations: 69.59 kB / 1.246 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2893, allocations: 4 kB / 1.246 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2893, allocations: 3.984 kB / 1.246 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2893, allocations: 0 / 1.246 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003301/0.2897, allocations: 315.4 kB / 1.246 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2897, allocations: 0 / 1.246 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.548e-05/0.2898, allocations: 12 kB / 1.246 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2898, allocations: 4.031 kB / 1.246 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.2898, allocations: 4.125 kB / 1.246 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.2898, allocations: 7.984 kB / 1.246 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.2898, allocations: 4 kB / 1.246 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000197/0.29, allocations: 184.2 kB / 1.247 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/0.2901, allocations: 85.12 kB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.2901, allocations: 0 / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.313e-05/0.2902, allocations: 8.062 kB / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.395e-05/0.2902, allocations: 4 kB / 1.247 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.2902, allocations: 0 / 1.247 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.648e-05/0.2903, allocations: 83.78 kB / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2903, allocations: 0 / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002498/0.2905, allocations: 23.94 kB / 1.247 GB, free: 3.391 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0005573/0.2911, allocations: 0.7427 MB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001019/0.2912, allocations: 35.98 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2912, allocations: 0 / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.353e-05/0.2912, allocations: 23.88 kB / 1.248 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.2915, allocations: 2.234 kB / 1.248 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.2928, allocations: 1.327 MB / 1.249 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.2931, allocations: 0.6807 MB / 1.25 GB, free: 452 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.734e-05/0.2931, allocations: 8.062 kB / 1.25 GB, free: 444 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.2932, allocations: 11.44 kB / 1.25 GB, free: 436 kB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.2932, allocations: 0 / 1.25 GB, free: 436 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.3159, allocations: 1.628 MB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/7.869, allocations: 6.312 kB / 1.251 GB, free: 14.98 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)