Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_DerivativeCheck,fileNamePrefix="Buildings_10_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_10_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.001733/0.001733, 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.001856/0.001856, allocations: 194.7 kB / 16.53 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.575/2.575, allocations: 437 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 63.89 kB / 0.8694 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.682/0.6833, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002754/0.686, allocations: 1.272 MB / 1.019 GB, free: 1.219 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.6871, allocations: 0.611 MB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.92e-05/0.6872, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.564e-05/0.6872, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.775e-05/0.6873, allocations: 3.938 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.6879, allocations: 151.4 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.836e-05/0.688, allocations: 15.92 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.548e-05/0.688, allocations: 4 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.81e-05/0.6881, allocations: 15.94 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.584e-05/0.6881, allocations: 3.984 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.6881, allocations: 4 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005883/0.6887, allocations: 343.3 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.229e-05/0.6888, allocations: 11.94 kB / 1.02 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.036e-05/0.6888, allocations: 0 / 1.02 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.6892, allocations: 153.9 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.6893, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.883e-06/0.6893, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.6893, allocations: 0 / 1.02 GB, free: 15.91 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005388/0.6898, allocations: 364.6 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.6899, allocations: 8.031 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.763e-05/0.6899, allocations: 34.73 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.69, allocations: 8.938 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.6901, allocations: 168.2 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.6901, allocations: 384 / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.6902, allocations: 4.375 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.6903, allocations: 46.19 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.6903, allocations: 3.938 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.6903, allocations: 0 / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.6904, allocations: 4 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.483e-05/0.6904, allocations: 4 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002142/0.6906, allocations: 161.7 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.6909, allocations: 38.7 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.191e-05/0.6909, allocations: 20.84 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.6909, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.047e-05/0.691, allocations: 42.5 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.691, allocations: 0 / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006851/0.6917, allocations: 314.2 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.6917, allocations: 55.34 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.6918, allocations: 97.86 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.6918, allocations: 25.7 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.042e-05/0.6919, allocations: 80.14 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.528e-05/0.6919, allocations: 31.64 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/0.692, allocations: 17.72 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.6921, allocations: 314.8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.639e-05/0.6921, allocations: 11.98 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.54e-05/0.6921, allocations: 15.98 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.627e-05/0.6922, allocations: 28.86 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.6922, allocations: 0 / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001056/0.6923, allocations: 73.56 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.6923, allocations: 4 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.6924, allocations: 4 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.6924, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.052e-05/0.6924, allocations: 11.98 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.6924, allocations: 4.234 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.6925, allocations: 3.938 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.6925, allocations: 0 / 1.022 GB, free: 13.67 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 (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.124e-05/0.6925, allocations: 113.8 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.6926, allocations: 7.844 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.6927, allocations: 81.56 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.6927, allocations: 4 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.6928, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.6928, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003279/0.6931, allocations: 315.4 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.6931, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.336e-05/0.6932, allocations: 16.17 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.6932, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.6932, allocations: 4 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.6932, allocations: 4.031 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.6932, allocations: 4 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.6934, allocations: 176.3 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-05/0.6935, allocations: 89.03 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.6935, allocations: 0 / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.322e-05/0.6936, allocations: 4 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.6936, allocations: 12.05 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.6936, allocations: 0 / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.055e-05/0.6937, allocations: 79.28 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6937, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002646/0.6939, allocations: 24 kB / 1.023 GB, free: 12.64 MB / 0.7794 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.0004953/0.6944, allocations: 0.7444 MB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000106/0.6946, allocations: 31.98 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6946, allocations: 0 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.752e-05/0.6946, allocations: 19.94 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.6948, allocations: 6.953 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.696, allocations: 1.335 MB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.6963, allocations: 0.6806 MB / 1.025 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.903e-05/0.6963, allocations: 4 kB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.6964, allocations: 15.44 kB / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6964, allocations: 0 / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.7196, allocations: 1.574 MB / 1.027 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.32/8.04, allocations: 8.328 kB / 1.027 GB, free: 8.246 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)