Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001561/0.001561, 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.001894/0.001894, allocations: 198 kB / 16.54 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.425/1.425, 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 10.1.1-maint.10.0.x/package.mo): time 2.62/2.62, allocations: 437.1 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002297, allocations: 63.91 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6431/0.6455, allocations: 151.6 MB / 1.017 GB, free: 2.465 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002687/0.6482, allocations: 1.468 MB / 1.019 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.6493, allocations: 0.6382 MB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.199e-05/0.6494, allocations: 8 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.634e-05/0.6494, allocations: 3.938 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.387e-05/0.6495, allocations: 3.938 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007144/0.6502, allocations: 159.2 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.559e-05/0.6503, allocations: 47.91 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.378e-05/0.6504, allocations: 7.922 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.162e-05/0.6505, allocations: 31.92 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.6505, allocations: 27.84 kB / 1.02 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.6506, allocations: 4 kB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005018/0.6511, allocations: 343.4 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.223e-05/0.6511, allocations: 15.98 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.594e-05/0.6511, allocations: 23.86 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000308/0.6515, allocations: 177.8 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6515, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6515, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.6515, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 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.00058/0.6521, allocations: 403.2 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.6521, allocations: 8.031 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.855e-05/0.6522, allocations: 38.75 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.162e-05/0.6522, allocations: 8.875 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.6523, allocations: 172.2 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.6524, allocations: 8.375 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/0.6524, allocations: 8.375 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002496/0.6526, allocations: 74.22 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.6527, allocations: 7.938 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.6527, allocations: 4 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.6527, allocations: 0 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002609/0.653, allocations: 51.89 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005865/0.6536, allocations: 324.7 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.6539, allocations: 90.39 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.654, allocations: 28.84 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.654, allocations: 3.984 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.6541, allocations: 38.56 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.6541, allocations: 7.938 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001639/0.6557, allocations: 0.6385 MB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.6558, allocations: 55.41 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.65e-05/0.6558, allocations: 101.9 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.6559, allocations: 29.64 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.6559, allocations: 99.97 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.579e-05/0.6559, allocations: 35.45 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.656, allocations: 29.66 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.6561, allocations: 322.8 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.6562, allocations: 31.98 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.6564, allocations: 40.09 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.6566, allocations: 76.77 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.6566, allocations: 0 / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003268/0.657, allocations: 107.5 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.657, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.657, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.657, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.6572, allocations: 31.92 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.6572, allocations: 3.938 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.659e-05/0.6573, allocations: 7.984 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.6573, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 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 6.975e-05/0.6574, allocations: 115.4 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.6574, allocations: 11.91 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003762/0.6578, allocations: 125.5 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.6578, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.6578, allocations: 7.875 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.6578, allocations: 0 / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005387/0.6584, allocations: 382.5 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.6584, allocations: 0 / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.6585, allocations: 27.98 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.6585, allocations: 3.938 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.6586, allocations: 3.938 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.6586, allocations: 4 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6586, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004815/0.6591, allocations: 251.3 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-05/0.6591, allocations: 81.02 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.6591, allocations: 15.91 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.6592, allocations: 7.984 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.942e-05/0.6593, allocations: 7.984 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.6593, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.498e-05/0.6593, allocations: 87.45 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6593, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002779/0.6596, allocations: 43.94 kB / 1.024 GB, free: 11.07 MB / 0.7794 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.0007897/0.6604, allocations: 0.8139 MB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003392/0.6608, allocations: 91.88 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.6608, allocations: 8 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.6609, allocations: 44.47 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.6613, allocations: 15.84 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.6634, allocations: 1.583 MB / 1.027 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.6637, allocations: 0.6885 MB / 1.027 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.578e-05/0.6637, allocations: 12.67 kB / 1.027 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.937e-05/0.6638, allocations: 27.42 kB / 1.027 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of SimCode: time 8.22e-07/0.6638, allocations: 3.938 kB / 1.027 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01967/0.6835, allocations: 2.295 MB / 1.03 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.499/8.183, allocations: 20.16 kB / 1.03 GB, free: 5.512 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)