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.006548/0.006548, allocations: 98.36 kB / 15.73 MB, free: 6.055 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.001468/0.001468, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.352/1.352, 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.22/2.22, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 63.91 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7196/0.7216, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002454/0.7241, allocations: 1.474 MB / 1.089 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009944/0.7252, allocations: 0.6288 MB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.7252, allocations: 1.094 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.349e-05/0.7253, allocations: 5.344 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.161e-05/0.7253, allocations: 9.609 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.7259, allocations: 159.8 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.726, allocations: 54.22 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.67e-05/0.7261, allocations: 7.125 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.731e-05/0.7262, allocations: 25.58 kB / 1.09 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.592e-05/0.7262, allocations: 29.16 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.7262, allocations: 4.656 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005821/0.7268, allocations: 344.1 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.321e-05/0.7268, allocations: 16.11 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.7269, allocations: 22.52 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.7272, allocations: 180.8 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.7272, allocations: 0.5156 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/0.7272, allocations: 1.438 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.749e-06/0.7272, allocations: 4 kB / 1.09 GB, free: 3.477 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.0006016/0.7279, allocations: 400.6 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.7279, allocations: 9.625 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.698e-05/0.728, allocations: 43.62 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.728, allocations: 8.688 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.763e-05/0.7281, allocations: 164 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.7281, allocations: 7.422 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.7281, allocations: 5 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.7284, allocations: 88 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.7284, allocations: 3.938 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.7284, allocations: 1.094 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.7284, allocations: 1.094 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.7287, allocations: 56.17 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/0.7292, allocations: 325.3 kB / 1.091 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.7295, allocations: 88.67 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.7296, allocations: 27 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.7297, allocations: 1.625 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.7297, allocations: 39.97 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.7297, allocations: 0.8438 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001637/0.7313, allocations: 0.6519 MB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.7314, allocations: 52.94 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.254e-05/0.7314, allocations: 106 kB / 1.092 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.7314, allocations: 26.48 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.627e-05/0.7315, allocations: 91.83 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.7315, allocations: 35.61 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.656e-05/0.7316, allocations: 29.02 kB / 1.093 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.309e-05/0.7316, allocations: 318.9 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.7318, allocations: 32.12 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.7319, allocations: 37.95 kB / 1.093 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.7321, allocations: 71.12 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.21e-07/0.7322, allocations: 3.938 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003203/0.7325, allocations: 119.3 kB / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.7325, allocations: 9.5 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.7325, allocations: 0.6562 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.7325, allocations: 1.094 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.7327, allocations: 32.98 kB / 1.093 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.7327, allocations: 4.984 kB / 1.093 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.741e-05/0.7328, allocations: 4.844 kB / 1.093 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.7328, allocations: 4.172 kB / 1.093 GB, free: 1.039 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.033e-05/0.7329, allocations: 114.8 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.7329, allocations: 10.27 kB / 1.093 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004067/0.7333, allocations: 129.6 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.7334, allocations: 1.969 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.7334, allocations: 3.938 kB / 1.093 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.7334, allocations: 1.484 kB / 1.093 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005512/0.7339, allocations: 383.4 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.734, allocations: 0 / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.7341, allocations: 32.95 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.7341, allocations: 4.812 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.7341, allocations: 2.375 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.7341, allocations: 0.9062 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.7342, allocations: 0.6094 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.7346, allocations: 252 kB / 1.094 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.722e-05/0.7347, allocations: 83.39 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.7347, allocations: 5.75 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.7348, allocations: 14.98 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.7349, allocations: 6.156 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.7349, allocations: 3.609 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.749e-05/0.7349, allocations: 88.05 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7349, allocations: 0 / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003368/0.7353, allocations: 43.69 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.00104/0.7363, allocations: 0.8169 MB / 1.095 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003945/0.7367, allocations: 84 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.7367, allocations: 1 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.7369, allocations: 45.84 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.000397/0.7373, allocations: 15.03 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.002368/0.7397, allocations: 1.597 MB / 1.097 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.7399, allocations: 0.6988 MB / 1.097 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.461e-05/0.74, allocations: 13.83 kB / 1.097 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.578e-05/0.7401, allocations: 26.92 kB / 1.097 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of SimCode: time 3.3e-07/0.7401, allocations: 0 / 1.097 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.7613, allocations: 2.329 MB / 1.1 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.917, allocations: 13.69 kB / 1.1 GB, free: 12.85 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)