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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001299/0.001299, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.001309, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.469/1.469, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.793/2.793, allocations: 469.4 MB / 0.742 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 60.45 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2723, allocations: 159.2 MB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002564/0.2749, allocations: 1.471 MB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00102/0.276, allocations: 0.6361 MB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.787e-05/0.276, allocations: 0 / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.2761, allocations: 3.938 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.256e-05/0.2762, allocations: 7.938 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000626/0.2768, allocations: 163.4 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.825e-05/0.2769, allocations: 47.84 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.143e-05/0.2769, allocations: 4 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.513e-05/0.277, allocations: 27.91 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.63e-05/0.277, allocations: 27.86 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.2771, allocations: 7.938 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004981/0.2776, allocations: 351.3 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.2776, allocations: 8 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.023e-05/0.2776, allocations: 31.84 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.2779, allocations: 175.8 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2779, allocations: 0 / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.278, allocations: 4 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.278, allocations: 0 / 1.067 GB, free: 11.48 MB / 0.8262 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.0005761/0.2785, allocations: 399.3 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2786, allocations: 8.031 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.357e-05/0.2786, allocations: 38.75 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.2787, allocations: 8.828 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.2788, allocations: 168.4 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.2788, allocations: 4.375 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.2788, allocations: 8.375 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.2791, allocations: 82.16 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.2791, allocations: 3.938 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.2791, allocations: 4 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2791, allocations: 4 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.2794, allocations: 47.95 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005235/0.2799, allocations: 328.5 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.2802, allocations: 74.53 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.2804, allocations: 40.83 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.2804, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.2804, allocations: 30.56 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.031e-06/0.2804, allocations: 4 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001655/0.2821, allocations: 0.6423 MB / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.2821, allocations: 59.28 kB / 1.068 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.231e-05/0.2822, allocations: 105.8 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2822, allocations: 29.7 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.945e-05/0.2823, allocations: 92.03 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.2823, allocations: 43.44 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.341e-05/0.2824, allocations: 25.72 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.842e-05/0.2825, allocations: 318.8 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.2826, allocations: 31.98 kB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.2827, allocations: 39.34 kB / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.283, allocations: 72.83 kB / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.283, allocations: 0 / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003193/0.2833, allocations: 125.6 kB / 1.069 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2834, allocations: 4 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.2834, allocations: 0 / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.2834, allocations: 0 / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.2835, allocations: 23.98 kB / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2836, allocations: 7.938 kB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.032e-05/0.2836, allocations: 11.98 kB / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.2836, allocations: 4 kB / 1.069 GB, free: 8.32 MB / 0.8262 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 7.328e-05/0.2837, allocations: 113.8 kB / 1.069 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.288e-05/0.2838, allocations: 4 kB / 1.069 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003808/0.2842, allocations: 137.4 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2842, allocations: 4 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2842, allocations: 3.938 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2842, allocations: 4 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005446/0.2847, allocations: 378.4 kB / 1.07 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.2847, allocations: 4 kB / 1.07 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.2849, allocations: 23.98 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.2849, allocations: 7.875 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.2849, allocations: 4 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.2849, allocations: 0 / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2849, allocations: 0 / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.2854, allocations: 255.7 kB / 1.07 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.2855, allocations: 81.02 kB / 1.07 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.2855, allocations: 3.938 kB / 1.07 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.2856, allocations: 7.984 kB / 1.07 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.031e-05/0.2857, allocations: 11.98 kB / 1.07 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.2857, allocations: 8.062 kB / 1.07 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.317e-05/0.2857, allocations: 79.28 kB / 1.07 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.393e-06/0.2857, allocations: 0 / 1.07 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002833/0.286, allocations: 39.92 kB / 1.07 GB, free: 7.066 MB / 0.8262 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.000872/0.2869, allocations: 0.8221 MB / 1.071 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003488/0.2873, allocations: 87.88 kB / 1.071 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.2873, allocations: 0 / 1.071 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.2874, allocations: 43.92 kB / 1.071 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.2878, allocations: 17.86 kB / 1.071 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.29, allocations: 1.589 MB / 1.073 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.2903, allocations: 0.7006 MB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.635e-05/0.2904, allocations: 8.609 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.457e-05/0.2904, allocations: 27.42 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2904, allocations: 0 / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.3108, allocations: 2.309 MB / 1.076 GB, free: 1.508 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.799, allocations: 8.734 kB / 1.076 GB, free: 1.5 MB / 0.8262 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 50 --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)