Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_DerivativeCheck2,fileNamePrefix="Buildings_11_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_11_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.005132/0.005132, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.00129/0.00129, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.905/2.905, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 59.91 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3173, allocations: 159.1 MB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002687/0.32, allocations: 1.472 MB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3211, allocations: 0.6266 MB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.203e-05/0.3212, allocations: 0 / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.371e-05/0.3212, allocations: 7.922 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.563e-05/0.3213, allocations: 3.938 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.3219, allocations: 163.2 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.694e-05/0.322, allocations: 55.84 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.322e-05/0.322, allocations: 11.97 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.155e-05/0.3221, allocations: 19.92 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.983e-05/0.3221, allocations: 27.86 kB / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.3222, allocations: 4 kB / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.3227, allocations: 347.3 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.009e-05/0.3228, allocations: 11.98 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.439e-05/0.3228, allocations: 31.78 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.3231, allocations: 179.3 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3231, allocations: 0 / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3231, allocations: 4 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.932e-06/0.3231, allocations: 0 / 1.223 GB, free: 11.33 MB / 0.9825 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.0006277/0.3238, allocations: 410.9 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3238, allocations: 12.03 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.167e-05/0.3239, allocations: 30.75 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.281e-05/0.3239, allocations: 8.938 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3241, allocations: 172.3 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.3241, allocations: 384 / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.3241, allocations: 16.31 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.3244, allocations: 78.22 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.3244, allocations: 3.938 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.3244, allocations: 0 / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3244, allocations: 0 / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.3247, allocations: 51.89 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005695/0.3253, allocations: 328.6 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.3256, allocations: 82.52 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3257, allocations: 24.84 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.3257, allocations: 4.156 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.3258, allocations: 46.53 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.3258, allocations: 0 / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001761/0.3276, allocations: 0.65 MB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.3276, allocations: 55.39 kB / 1.225 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.278e-05/0.3277, allocations: 101.8 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.3277, allocations: 29.7 kB / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.776e-05/0.3278, allocations: 92.08 kB / 1.225 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/0.3278, allocations: 39.64 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.3279, allocations: 29.7 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.328, allocations: 326.8 kB / 1.226 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.3282, allocations: 23.98 kB / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.3283, allocations: 35.97 kB / 1.226 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.3286, allocations: 72.83 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3286, allocations: 4 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003418/0.3289, allocations: 125 kB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.329, allocations: 12 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.329, allocations: 0 / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.329, allocations: 0 / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.3292, allocations: 23.98 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.3292, allocations: 3.938 kB / 1.226 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.786e-05/0.3293, allocations: 7.984 kB / 1.226 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.3293, allocations: 4 kB / 1.226 GB, free: 8.148 MB / 0.9825 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.607e-05/0.3294, allocations: 117.8 kB / 1.226 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.3294, allocations: 7.938 kB / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004009/0.3298, allocations: 133.6 kB / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.3298, allocations: 0 / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3298, allocations: 3.938 kB / 1.226 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3298, allocations: 0 / 1.226 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006138/0.3305, allocations: 382.4 kB / 1.226 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3305, allocations: 0 / 1.226 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.3306, allocations: 31.97 kB / 1.226 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3307, allocations: 3.938 kB / 1.226 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.3307, allocations: 8 kB / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3307, allocations: 0 / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3307, allocations: 0 / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005407/0.3312, allocations: 243.4 kB / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.3313, allocations: 85.2 kB / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.3313, allocations: 7.938 kB / 1.227 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.3315, allocations: 7.984 kB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.836e-05/0.3315, allocations: 4 kB / 1.227 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.3315, allocations: 11.98 kB / 1.227 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.422e-05/0.3315, allocations: 79.22 kB / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3316, allocations: 0 / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000283/0.3318, allocations: 43.81 kB / 1.227 GB, free: 6.887 MB / 0.9825 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.0009495/0.3328, allocations: 0.8181 MB / 1.228 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000344/0.3332, allocations: 84.44 kB / 1.228 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3332, allocations: 0 / 1.228 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.3333, allocations: 51.97 kB / 1.228 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.3337, allocations: 9.344 kB / 1.228 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.3361, allocations: 1.612 MB / 1.229 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.3365, allocations: 0.6889 MB / 1.23 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.012e-05/0.3365, allocations: 16.59 kB / 1.23 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.923e-05/0.3366, allocations: 27.44 kB / 1.23 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of SimCode: time 8.52e-07/0.3366, allocations: 0 / 1.23 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.3616, allocations: 2.327 MB / 1.232 GB, free: 1.312 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.288/8.649, allocations: 11.14 kB / 1.232 GB, free: 1.305 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)