Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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.005979/0.005979, allocations: 96.7 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.001403/0.001403, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.529/2.529, allocations: 390.3 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001399, allocations: 59.06 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3139, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.003314/0.3173, allocations: 1.281 MB / 1.089 GB, free: 0.6875 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.3187, allocations: 0.6128 MB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.283e-05/0.3188, allocations: 0 / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.99e-05/0.3188, allocations: 0 / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.135e-05/0.3189, allocations: 3.938 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009135/0.3199, allocations: 139.4 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001341/0.32, allocations: 23.91 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.137e-05/0.3201, allocations: 3.938 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.095e-05/0.3201, allocations: 12 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.623e-05/0.3202, allocations: 11.92 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.3202, allocations: 4 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007503/0.321, allocations: 343.3 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.896e-05/0.321, allocations: 4 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.67e-05/0.3211, allocations: 11.94 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.3215, allocations: 151.8 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3215, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3215, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.374e-05/0.3216, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 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.0006709/0.3222, allocations: 363.1 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/0.3223, allocations: 8.031 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.3224, allocations: 34.75 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.587e-05/0.3224, allocations: 4.891 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.3226, allocations: 168.3 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.3227, allocations: 4.375 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.3227, allocations: 4.375 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.3229, allocations: 46.19 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.3229, allocations: 3.938 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.3229, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3229, allocations: 4 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.628e-05/0.323, allocations: 11.94 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002636/0.3233, allocations: 157.7 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.3235, allocations: 42.59 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.928e-05/0.3236, allocations: 20.94 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.3236, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.3237, allocations: 46.5 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.3237, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0008363/0.3245, allocations: 306.2 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.3246, allocations: 55.39 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.625e-05/0.3247, allocations: 93.86 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.3247, allocations: 29.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.613e-05/0.3248, allocations: 80.14 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.3249, allocations: 31.78 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/0.3249, allocations: 17.72 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001742/0.3251, allocations: 314.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.205e-05/0.3252, allocations: 11.98 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.776e-05/0.3252, allocations: 8 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.377e-05/0.3253, allocations: 40.98 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3253, allocations: 3.938 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001507/0.3255, allocations: 69.56 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3255, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3255, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.3256, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.964e-05/0.3256, allocations: 19.98 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.3257, allocations: 0 / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.639e-05/0.3257, allocations: 0 / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.3257, allocations: 0 / 1.092 GB, free: 13.13 MB / 0.8575 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 0.0001024/0.3258, allocations: 113.8 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.3259, allocations: 7.891 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.3261, allocations: 77.58 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3261, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3261, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3261, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004961/0.3266, allocations: 315.3 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3266, allocations: 0 / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.954e-05/0.3267, allocations: 15.98 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3267, allocations: 0 / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.3267, allocations: 0 / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3268, allocations: 4.188 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3268, allocations: 8.031 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.327, allocations: 180.3 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.868e-05/0.3272, allocations: 93.08 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.3272, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.3273, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.069e-05/0.3273, allocations: 3.984 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.3273, allocations: 8.062 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.802e-05/0.3274, allocations: 79.8 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3274, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004458/0.3279, allocations: 19.94 kB / 1.093 GB, free: 12.1 MB / 0.8575 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.0007577/0.3286, allocations: 0.7444 MB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001495/0.3288, allocations: 27.98 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/0.3288, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.915e-05/0.3289, allocations: 19.94 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.3293, allocations: 15.08 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.3311, allocations: 1.315 MB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.3314, allocations: 0.6807 MB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.642e-05/0.3315, allocations: 8.031 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.789e-05/0.3315, allocations: 19.42 kB / 1.096 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of SimCode: time 1.072e-06/0.3315, allocations: 4 kB / 1.096 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.3553, allocations: 1.622 MB / 1.097 GB, free: 7.688 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.784, allocations: 18.02 kB / 1.097 GB, free: 7.672 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)