Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001161/0.001161, allocations: 100.9 kB / 16.27 MB, free: 5.992 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.001244/0.001244, allocations: 187.4 kB / 17.2 MB, free: 5.605 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.279/1.279, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7246/0.7246, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 67.89 kB / 0.4912 GB, free: 7.32 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3242, allocations: 77.91 MB / 0.5673 GB, free: 32.94 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002186/0.3265, allocations: 1.274 MB / 0.5685 GB, free: 32.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008297/0.3273, allocations: 0.6111 MB / 0.5691 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.19e-05/0.3273, allocations: 0 / 0.5691 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.002e-05/0.3274, allocations: 2.391 kB / 0.5691 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.656e-05/0.3274, allocations: 8.969 kB / 0.5691 GB, free: 31.62 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004825/0.3279, allocations: 143.3 kB / 0.5693 GB, free: 31.56 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.748e-05/0.328, allocations: 21.53 kB / 0.5693 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.844e-05/0.328, allocations: 2.391 kB / 0.5693 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.133e-05/0.3281, allocations: 4.938 kB / 0.5693 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.542e-05/0.3281, allocations: 21.53 kB / 0.5693 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.3281, allocations: 2.25 kB / 0.5693 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000474/0.3286, allocations: 338.9 kB / 0.5696 GB, free: 31.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.062e-05/0.3286, allocations: 1.672 kB / 0.5696 GB, free: 31.45 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.3287, allocations: 17.53 kB / 0.5697 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.3289, allocations: 148.5 kB / 0.5698 GB, free: 31.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3289, allocations: 0.6562 kB / 0.5698 GB, free: 31.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3289, allocations: 1.156 kB / 0.5698 GB, free: 31.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3289, allocations: 0.9375 kB / 0.5698 GB, free: 31.39 MB / 446.1 MB 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.0003153/0.3293, allocations: 358.9 kB / 0.5702 GB, free: 31.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3293, allocations: 13.89 kB / 0.5702 GB, free: 31 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.269e-05/0.3293, allocations: 32 kB / 0.5702 GB, free: 30.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.692e-05/0.3294, allocations: 4.156 kB / 0.5702 GB, free: 30.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.778e-05/0.3294, allocations: 175.7 kB / 0.5704 GB, free: 30.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.3295, allocations: 1.562 kB / 0.5704 GB, free: 30.76 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.3295, allocations: 5.531 kB / 0.5704 GB, free: 30.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.325e-05/0.3296, allocations: 42.42 kB / 0.5704 GB, free: 30.72 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.3296, allocations: 3.938 kB / 0.5704 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.3296, allocations: 0 / 0.5704 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3296, allocations: 2.219 kB / 0.5704 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.61e-05/0.3297, allocations: 7.766 kB / 0.5704 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.3298, allocations: 160.2 kB / 0.5706 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.3299, allocations: 45.31 kB / 0.5706 GB, free: 30.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.2e-05/0.33, allocations: 18.89 kB / 0.5706 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.33, allocations: 3.344 kB / 0.5706 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.22e-05/0.33, allocations: 31.08 kB / 0.5707 GB, free: 30.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.33, allocations: 0.7812 kB / 0.5707 GB, free: 30.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005196/0.3306, allocations: 316.6 kB / 0.571 GB, free: 30.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.119e-05/0.3306, allocations: 54.16 kB / 0.571 GB, free: 30.08 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.329e-05/0.3306, allocations: 100.2 kB / 0.5711 GB, free: 29.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.3307, allocations: 31.42 kB / 0.5712 GB, free: 29.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.485e-05/0.3307, allocations: 80.7 kB / 0.5712 GB, free: 29.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.3307, allocations: 21.72 kB / 0.5713 GB, free: 29.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/0.3307, allocations: 22.91 kB / 0.5713 GB, free: 29.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.416e-05/0.3308, allocations: 319.5 kB / 0.5716 GB, free: 29.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.489e-05/0.3308, allocations: 11.31 kB / 0.5716 GB, free: 29.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.243e-05/0.3308, allocations: 8.828 kB / 0.5716 GB, free: 29.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.623e-05/0.3309, allocations: 37.58 kB / 0.5716 GB, free: 29.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.3309, allocations: 0.625 kB / 0.5716 GB, free: 29.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.937e-05/0.331, allocations: 65.81 kB / 0.5717 GB, free: 29.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.331, allocations: 5.375 kB / 0.5717 GB, free: 29.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.331, allocations: 1.531 kB / 0.5717 GB, free: 29.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.331, allocations: 0 / 0.5717 GB, free: 29.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.381e-05/0.3311, allocations: 20.11 kB / 0.5717 GB, free: 29.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3311, allocations: 1.688 kB / 0.5717 GB, free: 29.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.756e-05/0.3311, allocations: 0.5 kB / 0.5717 GB, free: 29.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.3311, allocations: 2.922 kB / 0.5717 GB, free: 29.43 MB / 446.1 MB 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 4.456e-05/0.3312, allocations: 113.8 kB / 0.5718 GB, free: 29.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.3312, allocations: 6.312 kB / 0.5718 GB, free: 29.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.3313, allocations: 69.28 kB / 0.5719 GB, free: 29.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3314, allocations: 10.23 kB / 0.5719 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3314, allocations: 0 / 0.5719 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3314, allocations: 3.047 kB / 0.5719 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.3316, allocations: 317.2 kB / 0.5722 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3316, allocations: 1 kB / 0.5722 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.236e-05/0.3317, allocations: 15.69 kB / 0.5722 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3317, allocations: 1.125 kB / 0.5722 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.3317, allocations: 3.844 kB / 0.5722 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3317, allocations: 0 / 0.5722 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3317, allocations: 1.812 kB / 0.5722 GB, free: 28.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.3319, allocations: 186.4 kB / 0.5724 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.127e-05/0.3319, allocations: 86.09 kB / 0.5725 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.3319, allocations: 1.875 kB / 0.5725 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.729e-05/0.332, allocations: 1.25 kB / 0.5725 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.851e-05/0.332, allocations: 4.859 kB / 0.5725 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.332, allocations: 7.078 kB / 0.5725 GB, free: 28.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.124e-05/0.3321, allocations: 83.5 kB / 0.5726 GB, free: 28.58 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3321, allocations: 3.938 kB / 0.5726 GB, free: 28.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.3323, allocations: 21.91 kB / 0.5726 GB, free: 28.57 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0003386/0.3327, allocations: 0.7355 MB / 0.5733 GB, free: 27.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.554e-05/0.3328, allocations: 37.48 kB / 0.5734 GB, free: 27.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3328, allocations: 0.5312 kB / 0.5734 GB, free: 27.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.585e-05/0.3328, allocations: 15.95 kB / 0.5734 GB, free: 27.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.333, allocations: 10.81 kB / 0.5734 GB, free: 27.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008469/0.3339, allocations: 1.314 MB / 0.5747 GB, free: 26.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.459e-05/0.334, allocations: 0.679 MB / 0.5753 GB, free: 25.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.94e-05/0.334, allocations: 5.562 kB / 0.5754 GB, free: 25.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.636e-05/0.3341, allocations: 14.34 kB / 0.5754 GB, free: 25.92 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3341, allocations: 5.25 kB / 0.5754 GB, free: 25.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.3518, allocations: 1.597 MB / 0.5769 GB, free: 25.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.001/7.353, allocations: 10.08 kB / 0.5769 GB, free: 25.59 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)