Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.008514/0.008514, allocations: 97.94 kB / 15.73 MB, free: 6.016 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.002154/0.002154, allocations: 200.1 kB / 16.67 MB, free: 5.93 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: 15.07 MB / 206.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.57/2.57, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 68.11 kB / 1.018 GB, free: 9.883 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8712/0.8731, allocations: 151.6 MB / 1.166 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002434/0.8756, allocations: 1.307 MB / 1.167 GB, free: 2.477 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001135/0.8768, allocations: 0.6096 MB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.347e-05/0.8768, allocations: 7.938 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.234e-05/0.8768, allocations: 0 / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.198e-05/0.8769, allocations: 3.938 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.8775, allocations: 144.8 kB / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.704e-05/0.8775, allocations: 31.91 kB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.416e-05/0.8776, allocations: 3.984 kB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.876e-05/0.8776, allocations: 19.94 kB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.717e-05/0.8777, allocations: 11.92 kB / 1.168 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.8777, allocations: 0 / 1.168 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005478/0.8783, allocations: 347.3 kB / 1.169 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.583e-05/0.8783, allocations: 4 kB / 1.169 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.359e-05/0.8783, allocations: 19.92 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.8786, allocations: 151.2 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.8786, allocations: 0 / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8786, allocations: 0 / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.8786, allocations: 0 / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004936/0.8791, allocations: 375 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.8792, allocations: 8.031 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.982e-05/0.8792, allocations: 38.73 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.8793, allocations: 8.875 kB / 1.169 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.8794, allocations: 164.3 kB / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.8794, allocations: 4.375 kB / 1.169 GB, free: 468 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.8795, allocations: 4.375 kB / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.8796, allocations: 50.19 kB / 1.169 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.8796, allocations: 3.938 kB / 1.169 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.8796, allocations: 8 kB / 1.169 GB, free: 396 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.8797, allocations: 4 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.374e-05/0.8797, allocations: 15.98 kB / 1.169 GB, free: 376 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001974/0.8799, allocations: 169.6 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.88, allocations: 62.5 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5e-05/0.8801, allocations: 24.84 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.8801, allocations: 0 / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.8802, allocations: 46.5 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.8802, allocations: 0 / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.001259/0.8814, allocations: 0.5876 MB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.8815, allocations: 51.41 kB / 1.17 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.337e-05/0.8816, allocations: 101.8 kB / 1.17 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.8816, allocations: 25.7 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.8817, allocations: 84.14 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.8817, allocations: 35.69 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.957e-05/0.8818, allocations: 29.7 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.8819, allocations: 314.8 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.064e-05/0.882, allocations: 23.98 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.094e-05/0.882, allocations: 24.11 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.8821, allocations: 54.36 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.8821, allocations: 0 / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001647/0.8823, allocations: 110.1 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.8823, allocations: 4 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.8823, allocations: 4.312 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.8824, allocations: 96 / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.8825, allocations: 27.92 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.8825, allocations: 0 / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.674e-05/0.8825, allocations: 3.984 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.8825, allocations: 15.98 kB / 1.171 GB, free: 14.38 MB / 0.9044 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.06e-05/0.8826, allocations: 117.8 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.8827, allocations: 7.938 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.8829, allocations: 109.5 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.8829, allocations: 0 / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.8829, allocations: 0 / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.8829, allocations: 0 / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.8834, allocations: 354.5 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.8834, allocations: 4 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.8835, allocations: 23.98 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.8835, allocations: 0 / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.8835, allocations: 4 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.8835, allocations: 0 / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.8835, allocations: 0 / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.8838, allocations: 223.3 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/0.8839, allocations: 81.14 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.8839, allocations: 64 / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.042e-05/0.884, allocations: 12 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.333e-05/0.884, allocations: 7.984 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.884, allocations: 0 / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.245e-05/0.8841, allocations: 79.28 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8841, allocations: 0 / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002827/0.8844, allocations: 35.88 kB / 1.172 GB, free: 13.22 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0007077/0.8851, allocations: 0.7904 MB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001604/0.8853, allocations: 57.66 kB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.8853, allocations: 0 / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.757e-05/0.8853, allocations: 39.86 kB / 1.173 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.8856, allocations: 8.219 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.8872, allocations: 1.513 MB / 1.174 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.8875, allocations: 0.6923 MB / 1.175 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.713e-05/0.8876, allocations: 7.984 kB / 1.175 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.8876, allocations: 19.44 kB / 1.175 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of SimCode: time 4.91e-07/0.8876, allocations: 0 / 1.175 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02549/0.9131, allocations: 2.063 MB / 1.177 GB, free: 8.09 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.204/9.117, allocations: 9.656 kB / 1.177 GB, free: 8.086 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)