Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 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_DerivativeCheck,fileNamePrefix="Buildings_11_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_11_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.007743/0.007743, allocations: 98.02 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.002047/0.002047, allocations: 195.3 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.496/1.496, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.729/2.729, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 67.89 kB / 1.065 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6602/0.6622, allocations: 159.1 MB / 1.22 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002346/0.6646, allocations: 1.283 MB / 1.221 GB, free: 0.7422 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.6656, allocations: 0.6111 MB / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.681e-05/0.6657, allocations: 0 / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.437e-05/0.6657, allocations: 0 / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.618e-05/0.6657, allocations: 3.938 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005651/0.6663, allocations: 157.7 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 6.297e-05/0.6664, allocations: 19.92 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.238e-05/0.6664, allocations: 0 / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.578e-05/0.6665, allocations: 11.94 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.825e-05/0.6665, allocations: 11.97 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.6665, allocations: 4 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005552/0.6671, allocations: 339.3 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.6671, allocations: 7.922 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.6672, allocations: 15.94 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.6674, allocations: 147.2 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.6675, allocations: 3.984 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6675, allocations: 0 / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.6675, allocations: 0 / 1.223 GB, free: 15.43 MB / 0.9512 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.0004252/0.6679, allocations: 359.1 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.6679, allocations: 12.56 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.907e-05/0.668, allocations: 34.75 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.668, allocations: 0.9375 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.6681, allocations: 176.3 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.6682, allocations: 4.375 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.6682, allocations: 4.375 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.6683, allocations: 42.25 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.6683, allocations: 3.938 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.6683, allocations: 0 / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.6683, allocations: 0 / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.695e-05/0.6684, allocations: 8 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.6686, allocations: 161.6 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.6687, allocations: 46.55 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.785e-05/0.6688, allocations: 20.94 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.6688, allocations: 0 / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.6689, allocations: 34.56 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.6689, allocations: 0 / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0006263/0.6695, allocations: 310.6 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.6695, allocations: 51.41 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.437e-05/0.6696, allocations: 101.8 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.6696, allocations: 29.7 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.6697, allocations: 80.14 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.872e-05/0.6697, allocations: 19.8 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.6698, allocations: 21.7 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.6699, allocations: 318.8 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.49e-05/0.6699, allocations: 15.98 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.347e-05/0.67, allocations: 15.92 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.34e-05/0.67, allocations: 32.86 kB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.6701, allocations: 0 / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001089/0.6702, allocations: 69.58 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.6702, allocations: 4 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.6702, allocations: 0 / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.6702, allocations: 3.938 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.166e-05/0.6703, allocations: 19.98 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.6703, allocations: 3.938 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.952e-05/0.6703, allocations: 4 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.6703, allocations: 8 kB / 1.225 GB, free: 13.17 MB / 0.9512 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 8.231e-05/0.6704, allocations: 113.8 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.278e-05/0.6704, allocations: 3.938 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001474/0.6706, allocations: 77.62 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.6706, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.6706, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.6706, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003382/0.671, allocations: 315.4 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.671, allocations: 0 / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.695e-05/0.671, allocations: 12 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.671, allocations: 0 / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.6711, allocations: 3.984 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.6711, allocations: 7.938 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.6711, allocations: 0 / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.6713, allocations: 180.3 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.6714, allocations: 89.12 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.6714, allocations: 0 / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.189e-05/0.6714, allocations: 0 / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.518e-05/0.6715, allocations: 4 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.6715, allocations: 7.984 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.431e-05/0.6715, allocations: 79.28 kB / 1.225 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.11e-07/0.6715, allocations: 0 / 1.225 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002578/0.6718, allocations: 19.94 kB / 1.225 GB, free: 12.15 MB / 0.9512 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.0005656/0.6724, allocations: 0.7451 MB / 1.226 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001028/0.6725, allocations: 35.98 kB / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6725, allocations: 0 / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.497e-05/0.6725, allocations: 20.06 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.6728, allocations: 12.91 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.6741, allocations: 1.323 MB / 1.228 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.6744, allocations: 0.6807 MB / 1.228 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.148e-05/0.6744, allocations: 12.31 kB / 1.228 GB, free: 9.191 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.292e-05/0.6744, allocations: 15.44 kB / 1.228 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.6744, allocations: 0 / 1.228 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.6972, allocations: 1.632 MB / 1.23 GB, free: 7.719 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/8.213, allocations: 17.3 kB / 1.23 GB, free: 7.711 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)