Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.007544/0.007544, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001733/0.001733, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.31/2.31, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 55.91 kB / 0.9504 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8375/0.839, 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_m_flow_DerivativeCheck2): time 0.002617/0.8417, allocations: 1.471 MB / 1.089 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.8428, allocations: 0.6381 MB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.031e-05/0.8429, allocations: 0.9375 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.627e-05/0.8429, allocations: 5.438 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.308e-05/0.843, allocations: 6.172 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.8437, allocations: 158.4 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.8438, allocations: 58.17 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.942e-05/0.8438, allocations: 8.078 kB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.847e-05/0.8439, allocations: 29.77 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.094e-05/0.844, allocations: 24.44 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.844, allocations: 4.188 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006282/0.8446, allocations: 348.8 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.8447, allocations: 12.81 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.203e-05/0.8447, allocations: 26.09 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000353/0.8451, allocations: 175.2 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.8451, allocations: 1.375 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8451, allocations: 0 / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.8451, allocations: 4 kB / 1.09 GB, free: 3.465 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000588/0.8457, allocations: 398.5 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.8458, allocations: 9.688 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.8458, allocations: 38.38 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.8458, allocations: 7.969 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.684e-05/0.8459, allocations: 176 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.8459, allocations: 7.438 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.443e-05/0.846, allocations: 9.984 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.8462, allocations: 86 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.8463, allocations: 5.031 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.8463, allocations: 1 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.8463, allocations: 1.062 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.8465, allocations: 51.91 kB / 1.091 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.847, allocations: 321.3 kB / 1.091 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.8473, allocations: 76 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.8475, allocations: 31.64 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.8475, allocations: 2.141 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.8475, allocations: 32.19 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.8475, allocations: 4 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001609/0.8491, allocations: 0.6444 MB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.8492, allocations: 57.22 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.482e-05/0.8493, allocations: 105.2 kB / 1.092 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.8493, allocations: 27.27 kB / 1.092 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.22e-05/0.8493, allocations: 94.98 kB / 1.092 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.8493, allocations: 35.41 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.8494, allocations: 29.39 kB / 1.093 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.8495, allocations: 319.1 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.8496, allocations: 32 kB / 1.093 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.8497, allocations: 33.28 kB / 1.093 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.85, allocations: 70.81 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.85, allocations: 1.516 kB / 1.093 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003213/0.8503, allocations: 126.1 kB / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.8504, allocations: 13.7 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.8504, allocations: 0 / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.8504, allocations: 1.359 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.8506, allocations: 29.52 kB / 1.093 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.8506, allocations: 9.859 kB / 1.093 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.828e-05/0.8507, allocations: 4.828 kB / 1.093 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.8507, allocations: 7.094 kB / 1.093 GB, free: 1.035 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 6.402e-05/0.8507, allocations: 114.6 kB / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/0.8508, allocations: 2.375 kB / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000409/0.8512, allocations: 141.6 kB / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.8512, allocations: 2.328 kB / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8512, allocations: 4.625 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.8512, allocations: 0.7969 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005371/0.8518, allocations: 386.7 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.8518, allocations: 0.8438 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.852, allocations: 29.23 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.852, allocations: 4.875 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.852, allocations: 5.562 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.852, allocations: 1.547 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.852, allocations: 0 / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004922/0.8525, allocations: 244 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.282e-05/0.8525, allocations: 87.5 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.8526, allocations: 10.31 kB / 1.094 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.8527, allocations: 5.859 kB / 1.094 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.62e-05/0.8527, allocations: 6.078 kB / 1.094 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.8527, allocations: 8.047 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.971e-05/0.8528, allocations: 80.28 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8528, allocations: 0 / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003262/0.8531, allocations: 43.56 kB / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0009699/0.8541, allocations: 0.8202 MB / 1.095 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003598/0.8545, allocations: 76.11 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8545, allocations: 0.7188 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.8546, allocations: 50.88 kB / 1.095 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.855, allocations: 9.672 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.8572, allocations: 1.606 MB / 1.097 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.8575, allocations: 0.691 MB / 1.097 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.148e-05/0.8576, allocations: 9.75 kB / 1.097 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.045e-05/0.8577, allocations: 26.83 kB / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of SimCode: time 6.41e-07/0.8577, allocations: 0.7188 kB / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.8801, allocations: 2.326 MB / 1.1 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.673, allocations: 19.14 kB / 1.1 GB, free: 12.86 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)