Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006986/0.006986, allocations: 102.4 kB / 15.73 MB, free: 6.008 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.001346/0.001346, allocations: 198.5 kB / 16.68 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.202/2.202, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.89 kB / 0.9504 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7303/0.7317, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001928/0.7336, allocations: 1.277 MB / 1.089 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008364/0.7345, allocations: 0.6221 MB / 1.089 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.698e-05/0.7345, allocations: 5.031 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.899e-05/0.7345, allocations: 4.453 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.574e-05/0.7346, allocations: 5.203 kB / 1.089 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.7351, allocations: 150 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.124e-05/0.7352, allocations: 29.12 kB / 1.09 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.2e-05/0.7352, allocations: 7.25 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.486e-05/0.7353, allocations: 12.39 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.668e-05/0.7353, allocations: 11.36 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.7353, allocations: 1.094 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005467/0.7359, allocations: 346.1 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.553e-05/0.7359, allocations: 11.97 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.599e-05/0.736, allocations: 14.39 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002936/0.7363, allocations: 155.6 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.7363, allocations: 0.8125 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7363, allocations: 0 / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.7363, allocations: 0 / 1.09 GB, free: 3.672 MB / 0.8575 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.0003457/0.7366, allocations: 368.2 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.7367, allocations: 14.02 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.394e-05/0.7367, allocations: 33.41 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.7367, allocations: 7.031 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.626e-05/0.7368, allocations: 162.6 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.7368, allocations: 6.625 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.7369, allocations: 8.344 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.737, allocations: 45.84 kB / 1.091 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.737, allocations: 5.031 kB / 1.091 GB, free: 3 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.737, allocations: 4 kB / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.737, allocations: 1.062 kB / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.35e-05/0.7371, allocations: 23.38 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.7372, allocations: 162.7 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.7373, allocations: 64.88 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.357e-05/0.7374, allocations: 24.66 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.7374, allocations: 5.062 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.7374, allocations: 37.52 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.7374, allocations: 0 / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0009744/0.7384, allocations: 0.5987 MB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.13e-05/0.7385, allocations: 56.25 kB / 1.092 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.561e-05/0.7385, allocations: 94.38 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.7385, allocations: 30.89 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.171e-05/0.7385, allocations: 81.08 kB / 1.092 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/0.7386, allocations: 35.42 kB / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.7386, allocations: 32.42 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.465e-05/0.7386, allocations: 318.3 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.235e-05/0.7387, allocations: 23.16 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.956e-05/0.7387, allocations: 19.7 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.852e-05/0.7388, allocations: 54.39 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.7388, allocations: 4.594 kB / 1.092 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000142/0.739, allocations: 104 kB / 1.092 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.739, allocations: 5.766 kB / 1.092 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.739, allocations: 0 / 1.092 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.739, allocations: 5.031 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.7391, allocations: 21.05 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.7391, allocations: 0.75 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.389e-05/0.7392, allocations: 0.9375 kB / 1.092 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.7392, allocations: 7.484 kB / 1.092 GB, free: 1.398 MB / 0.8575 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 4.613e-05/0.7392, allocations: 113.9 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.7393, allocations: 11.61 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.7394, allocations: 105.5 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7395, allocations: 1.094 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.7395, allocations: 5.469 kB / 1.093 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.7395, allocations: 0.5625 kB / 1.093 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003121/0.7398, allocations: 353.1 kB / 1.093 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.7398, allocations: 0 / 1.093 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.7399, allocations: 23.83 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.7399, allocations: 1.094 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.7399, allocations: 2.328 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.7399, allocations: 4.625 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.74, allocations: 0.5156 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002124/0.7402, allocations: 227.7 kB / 1.093 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.683e-05/0.7402, allocations: 82.78 kB / 1.093 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.7402, allocations: 6.062 kB / 1.093 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.555e-05/0.7403, allocations: 5.766 kB / 1.093 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.929e-05/0.7403, allocations: 7.031 kB / 1.093 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.7403, allocations: 2.781 kB / 1.093 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.703e-05/0.7404, allocations: 77.95 kB / 1.093 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7404, allocations: 4.094 kB / 1.093 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002742/0.7406, allocations: 42.02 kB / 1.093 GB, free: 500 kB / 0.8575 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.0005593/0.7412, allocations: 0.7841 MB / 1.094 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001501/0.7414, allocations: 56.88 kB / 1.094 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.7414, allocations: 0.8438 kB / 1.094 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.476e-05/0.7414, allocations: 40.53 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.7417, allocations: 12.95 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.743, allocations: 1.509 MB / 1.096 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.7432, allocations: 0.6855 MB / 1.096 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.706e-05/0.7433, allocations: 15.59 kB / 1.096 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.7433, allocations: 18.52 kB / 1.096 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of SimCode: time 3e-07/0.7433, allocations: 0 / 1.096 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.7634, allocations: 2.064 MB / 1.099 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.676, allocations: 9.641 kB / 1.099 GB, free: 13.29 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)