Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 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_DerivativeCheck2,fileNamePrefix="Buildings_11_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_11_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.006413/0.006413, allocations: 100.4 kB / 15.73 MB, free: 5.953 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.001543/0.001544, allocations: 190.1 kB / 16.67 MB, free: 5.875 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.795/2.795, allocations: 469.8 MB / 0.7425 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 71.81 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8213/0.8232, 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_dp_DerivativeCheck2): time 0.002377/0.8257, allocations: 1.276 MB / 1.221 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001143/0.8268, allocations: 0.6227 MB / 1.222 GB, free: 124 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.029e-05/0.8269, allocations: 0 / 1.222 GB, free: 124 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.233e-05/0.8269, allocations: 3.938 kB / 1.222 GB, free: 120 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.777e-05/0.827, allocations: 3.984 kB / 1.222 GB, free: 116 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.8276, allocations: 157.4 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 6.542e-05/0.8277, allocations: 27.92 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.198e-05/0.8277, allocations: 0 / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.202e-05/0.8278, allocations: 23.91 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.88e-05/0.8278, allocations: 11.94 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.8278, allocations: 4 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005609/0.8284, allocations: 343.3 kB / 1.223 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.8284, allocations: 11.98 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.8285, allocations: 7.938 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.8288, allocations: 159.2 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.8288, allocations: 0 / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8288, allocations: 0 / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.8288, allocations: 0 / 1.223 GB, free: 15.39 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000522/0.8293, allocations: 375 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.8294, allocations: 8.625 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.308e-05/0.8294, allocations: 38.75 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.31e-05/0.8295, allocations: 4.891 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.8296, allocations: 164.4 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.8297, allocations: 4.375 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.8297, allocations: 8.375 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.8298, allocations: 46.19 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.8299, allocations: 7.938 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.8299, allocations: 4 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.8299, allocations: 0 / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.742e-05/0.8299, allocations: 23.92 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002023/0.8302, allocations: 161.7 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.8303, allocations: 58.55 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.541e-05/0.8303, allocations: 24.86 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.8303, allocations: 4 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.8304, allocations: 38.56 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.886e-06/0.8304, allocations: 0 / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.001225/0.8316, allocations: 0.5956 MB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.8317, allocations: 51.41 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.959e-05/0.8318, allocations: 105.8 kB / 1.224 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.8318, allocations: 25.7 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.663e-05/0.8318, allocations: 80.14 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.8319, allocations: 43.67 kB / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.818e-05/0.8319, allocations: 29.72 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.8321, allocations: 314.8 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.478e-05/0.8321, allocations: 20 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.395e-05/0.8322, allocations: 28.11 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.8323, allocations: 61.97 kB / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.8323, allocations: 0 / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001616/0.8325, allocations: 101.5 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.8325, allocations: 4 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.8325, allocations: 0 / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.8325, allocations: 0 / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.8326, allocations: 27.98 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.8327, allocations: 0 / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.378e-05/0.8327, allocations: 0 / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.8327, allocations: 8 kB / 1.225 GB, free: 12.64 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 (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 0.0001006/0.8328, allocations: 117.8 kB / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.8328, allocations: 11.88 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002157/0.833, allocations: 113.5 kB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.8331, allocations: 0 / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.8331, allocations: 0 / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.8331, allocations: 0 / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.8335, allocations: 350.5 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.8335, allocations: 7.938 kB / 1.226 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.8336, allocations: 19.98 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.8337, allocations: 4 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.8337, allocations: 4 kB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.8337, allocations: 96 / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.8337, allocations: 3.938 kB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.834, allocations: 220 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.834, allocations: 77.11 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.834, allocations: 4.047 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.783e-05/0.8341, allocations: 8.031 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/0.8342, allocations: 8 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.8342, allocations: 7.984 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.86e-05/0.8342, allocations: 75.28 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.085e-06/0.8342, allocations: 0 / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002794/0.8345, allocations: 39.81 kB / 1.226 GB, free: 11.47 MB / 0.9512 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.0006679/0.8352, allocations: 0.7875 MB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001677/0.8354, allocations: 71.58 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.8354, allocations: 0 / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.436e-05/0.8354, allocations: 35.94 kB / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.8357, allocations: 6.828 kB / 1.227 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.8373, allocations: 1.509 MB / 1.228 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.8376, allocations: 0.6923 MB / 1.229 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.699e-05/0.8377, allocations: 11.94 kB / 1.229 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.421e-05/0.8377, allocations: 19.44 kB / 1.229 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of SimCode: time 2.9e-07/0.8377, allocations: 0 / 1.229 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.8642, allocations: 2.079 MB / 1.231 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.186/9.05, allocations: 6.609 kB / 1.231 GB, free: 6.316 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)