Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.004462/0.004462, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001288/0.001288, allocations: 202.1 kB / 16.68 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.925/2.925, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.89 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2832, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002525/0.2858, allocations: 1.485 MB / 1.243 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.2869, allocations: 0.6304 MB / 1.244 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.974e-05/0.2869, allocations: 0 / 1.244 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.123e-05/0.2869, allocations: 7.922 kB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.047e-05/0.287, allocations: 3.938 kB / 1.244 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.2875, allocations: 163.4 kB / 1.244 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.129e-05/0.2876, allocations: 43.91 kB / 1.244 GB, free: 7.844 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.74e-05/0.2877, allocations: 4 kB / 1.244 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.984e-05/0.2877, allocations: 27.91 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.664e-05/0.2878, allocations: 23.86 kB / 1.244 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.2878, allocations: 7.938 kB / 1.244 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005334/0.2883, allocations: 347.4 kB / 1.244 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.957e-05/0.2884, allocations: 11.98 kB / 1.244 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.547e-05/0.2884, allocations: 23.86 kB / 1.244 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.2887, allocations: 183.3 kB / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2887, allocations: 0 / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2887, allocations: 0 / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.2887, allocations: 0 / 1.244 GB, free: 7.227 MB / 0.9981 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.0006034/0.2893, allocations: 408.8 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2894, allocations: 8.031 kB / 1.245 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.116e-05/0.2894, allocations: 42.69 kB / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.846e-05/0.2895, allocations: 4.938 kB / 1.245 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.2896, allocations: 172.3 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.2896, allocations: 8.375 kB / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.014e-05/0.2897, allocations: 8.375 kB / 1.245 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/0.2899, allocations: 74.22 kB / 1.245 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.2899, allocations: 7.938 kB / 1.245 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.2899, allocations: 0 / 1.245 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2899, allocations: 3.938 kB / 1.245 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.2902, allocations: 59.81 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005425/0.2908, allocations: 328.7 kB / 1.245 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002978/0.2911, allocations: 82.47 kB / 1.245 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.2912, allocations: 24.84 kB / 1.246 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.2912, allocations: 4 kB / 1.246 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.2913, allocations: 38.56 kB / 1.246 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.2913, allocations: 0 / 1.246 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.00166/0.2929, allocations: 0.6387 MB / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.293, allocations: 63.33 kB / 1.246 GB, free: 5 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.542e-05/0.2931, allocations: 101.8 kB / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.2931, allocations: 25.7 kB / 1.246 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.2932, allocations: 96.08 kB / 1.246 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.2932, allocations: 35.66 kB / 1.246 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.2932, allocations: 33.7 kB / 1.247 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.2934, allocations: 322.8 kB / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.2935, allocations: 23.98 kB / 1.247 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.2937, allocations: 39.91 kB / 1.247 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.294, allocations: 76.2 kB / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.294, allocations: 0 / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003328/0.2943, allocations: 113.8 kB / 1.247 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2943, allocations: 4 kB / 1.247 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2943, allocations: 0 / 1.247 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.2944, allocations: 4 kB / 1.247 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.2945, allocations: 31.92 kB / 1.247 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.2945, allocations: 3.938 kB / 1.247 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.2946, allocations: 7.984 kB / 1.247 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.2946, allocations: 4 kB / 1.247 GB, free: 4.055 MB / 0.9981 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 9.121e-05/0.2947, allocations: 118.4 kB / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.2948, allocations: 7.953 kB / 1.247 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004045/0.2952, allocations: 133.5 kB / 1.247 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2952, allocations: 0 / 1.247 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.2952, allocations: 7.938 kB / 1.247 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.2952, allocations: 0 / 1.247 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.2958, allocations: 382.5 kB / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2958, allocations: 0 / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.296, allocations: 31.91 kB / 1.248 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.296, allocations: 3.938 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.296, allocations: 0 / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.296, allocations: 4 kB / 1.248 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.296, allocations: 0 / 1.248 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005357/0.2966, allocations: 251.4 kB / 1.248 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.68e-05/0.2966, allocations: 81.25 kB / 1.248 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.2966, allocations: 11.97 kB / 1.248 GB, free: 2.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.2968, allocations: 7.984 kB / 1.248 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-05/0.2968, allocations: 7.984 kB / 1.248 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.2968, allocations: 7.922 kB / 1.248 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.517e-05/0.2969, allocations: 83.28 kB / 1.248 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2969, allocations: 0 / 1.248 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002742/0.2972, allocations: 47.88 kB / 1.248 GB, free: 2.781 MB / 0.9981 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.0009343/0.2981, allocations: 0.818 MB / 1.249 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003371/0.2984, allocations: 91.89 kB / 1.249 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2985, allocations: 0 / 1.249 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.2986, allocations: 43.97 kB / 1.249 GB, free: 1.805 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.2989, allocations: 8 kB / 1.249 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.3011, allocations: 1.601 MB / 1.251 GB, free: 124 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4799/0.781, allocations: 0.6891 MB / 1.251 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.192e-05/0.7812, allocations: 11.33 kB / 1.251 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.256e-05/0.7812, allocations: 23.27 kB / 1.251 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of SimCode: time 7.12e-07/0.7812, allocations: 0.9062 kB / 1.251 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.805, allocations: 2.336 MB / 1.254 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.727/8.532, allocations: 9.625 kB / 1.254 GB, free: 14.12 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_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_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)