Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.006291/0.00629, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.002456/0.002456, allocations: 198.9 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.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 4.348 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.951/2.951, allocations: 469.8 MB / 0.7425 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 68.12 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3621, allocations: 159.1 MB / 1.22 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002382/0.3645, allocations: 1.282 MB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.3656, allocations: 0.6089 MB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.485e-05/0.3657, allocations: 0 / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.932e-05/0.3657, allocations: 0 / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.107e-05/0.3658, allocations: 3.938 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005538/0.3663, allocations: 146.5 kB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.435e-05/0.3664, allocations: 23.92 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.147e-05/0.3665, allocations: 3.984 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.713e-05/0.3665, allocations: 11.88 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.31e-05/0.3666, allocations: 7.984 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.3666, allocations: 0 / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005565/0.3671, allocations: 347.3 kB / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.244e-05/0.3672, allocations: 7.938 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.403e-05/0.3672, allocations: 11.94 kB / 1.223 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.3675, allocations: 143.6 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3675, allocations: 0 / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3675, allocations: 0 / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.3675, allocations: 4 kB / 1.223 GB, free: 11.73 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004816/0.368, allocations: 363 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.368, allocations: 12.03 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.457e-05/0.3681, allocations: 34.75 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.3681, allocations: 0.9375 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.3683, allocations: 176.3 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3683, allocations: 384 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.3683, allocations: 8.359 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.3684, allocations: 42.19 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3684, allocations: 3.938 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.3684, allocations: 0 / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.3685, allocations: 4 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.899e-05/0.3685, allocations: 8 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000186/0.3687, allocations: 157.6 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.3689, allocations: 50.55 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.481e-05/0.3689, allocations: 16.94 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.369, allocations: 4 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.369, allocations: 34.56 kB / 1.224 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.369, allocations: 0 / 1.224 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.000632/0.3696, allocations: 302.3 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.3697, allocations: 55.41 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.45e-05/0.3698, allocations: 101.8 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.3698, allocations: 25.7 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.282e-05/0.3699, allocations: 80.14 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/0.3699, allocations: 23.8 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.87e-05/0.3699, allocations: 21.7 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3701, allocations: 314.8 kB / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.761e-05/0.3701, allocations: 12 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.463e-05/0.3701, allocations: 15.98 kB / 1.224 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.417e-05/0.3702, allocations: 32.8 kB / 1.225 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.3702, allocations: 0 / 1.225 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001116/0.3703, allocations: 77.5 kB / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.3704, allocations: 4 kB / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.3704, allocations: 4 kB / 1.225 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.3704, allocations: 0 / 1.225 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.241e-05/0.3704, allocations: 11.94 kB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3705, allocations: 0 / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.073e-05/0.3705, allocations: 8.047 kB / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.3705, allocations: 12 kB / 1.225 GB, free: 9.469 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 (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 7.864e-05/0.3706, allocations: 109.8 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.3706, allocations: 8.453 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001515/0.3708, allocations: 69.88 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3708, allocations: 0 / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3708, allocations: 0 / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3708, allocations: 7.984 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.3711, allocations: 323.3 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3712, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.248e-05/0.3712, allocations: 8 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.3712, allocations: 4 kB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.3713, allocations: 0 / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3713, allocations: 0 / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3713, allocations: 0 / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.3715, allocations: 192.2 kB / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.72e-05/0.3715, allocations: 81.09 kB / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.3716, allocations: 4.031 kB / 1.225 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.07e-05/0.3716, allocations: 4 kB / 1.225 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.793e-05/0.3717, allocations: 4 kB / 1.225 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.3717, allocations: 0 / 1.225 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.809e-05/0.3717, allocations: 83.27 kB / 1.225 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3717, allocations: 0 / 1.225 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000248/0.372, allocations: 23.94 kB / 1.225 GB, free: 8.449 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0005796/0.3726, allocations: 0.7412 MB / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001196/0.3727, allocations: 39.94 kB / 1.226 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3727, allocations: 0 / 1.226 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.311e-05/0.3728, allocations: 20.05 kB / 1.226 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.373, allocations: 4 kB / 1.226 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.3743, allocations: 1.33 MB / 1.228 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.3746, allocations: 0.6807 MB / 1.228 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.178e-05/0.3747, allocations: 4 kB / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.444e-05/0.3747, allocations: 11.44 kB / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.3747, allocations: 0 / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.3999, allocations: 1.613 MB / 1.23 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.613, allocations: 17.89 kB / 1.23 GB, free: 4.035 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)