Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IBPSA_latest_IBPSA_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.001319/0.001319, allocations: 103.3 kB / 16.27 MB, free: 6.41 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.001165/0.001165, allocations: 184.6 kB / 17.2 MB, free: 5.953 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.292/1.292, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7301/0.7301, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 63.91 kB / 0.4912 GB, free: 7.324 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3319, allocations: 77.92 MB / 0.5673 GB, free: 32.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002996/0.3349, allocations: 1.46 MB / 0.5687 GB, free: 31.81 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.3361, allocations: 0.6284 MB / 0.5693 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.684e-05/0.3362, allocations: 2.75 kB / 0.5693 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.659e-05/0.3362, allocations: 5.484 kB / 0.5693 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.057e-05/0.3363, allocations: 9.75 kB / 0.5693 GB, free: 31.37 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007542/0.3371, allocations: 154 kB / 0.5695 GB, free: 31.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.3372, allocations: 52.88 kB / 0.5695 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.135e-05/0.3373, allocations: 4.547 kB / 0.5695 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.414e-05/0.3374, allocations: 30.27 kB / 0.5696 GB, free: 31.26 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.347e-05/0.3374, allocations: 25.95 kB / 0.5696 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.3375, allocations: 4.188 kB / 0.5696 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007579/0.3382, allocations: 341.2 kB / 0.5699 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.629e-05/0.3383, allocations: 17.39 kB / 0.5699 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.766e-05/0.3383, allocations: 22.2 kB / 0.57 GB, free: 31.13 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000464/0.3388, allocations: 183.6 kB / 0.5701 GB, free: 31.07 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3388, allocations: 0 / 0.5701 GB, free: 31.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3388, allocations: 1.688 kB / 0.5701 GB, free: 31.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.3389, allocations: 1.375 kB / 0.5701 GB, free: 31.07 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006888/0.3395, allocations: 390.6 kB / 0.5705 GB, free: 30.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.3396, allocations: 9.969 kB / 0.5705 GB, free: 30.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.3397, allocations: 42.38 kB / 0.5706 GB, free: 30.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.983e-05/0.3397, allocations: 9.078 kB / 0.5706 GB, free: 30.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.3398, allocations: 168.3 kB / 0.5707 GB, free: 30.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.3399, allocations: 16.75 kB / 0.5708 GB, free: 30.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.3399, allocations: 5.25 kB / 0.5708 GB, free: 30.42 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.3402, allocations: 77.02 kB / 0.5708 GB, free: 30.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.3403, allocations: 8.938 kB / 0.5708 GB, free: 30.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.3403, allocations: 6 kB / 0.5708 GB, free: 30.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3403, allocations: 1.062 kB / 0.5708 GB, free: 30.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/0.3406, allocations: 55.81 kB / 0.5709 GB, free: 30.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006039/0.3413, allocations: 320.6 kB / 0.5712 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.3416, allocations: 84.94 kB / 0.5713 GB, free: 30.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.3418, allocations: 32.27 kB / 0.5713 GB, free: 30 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3418, allocations: 2.891 kB / 0.5713 GB, free: 30 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.3419, allocations: 32.62 kB / 0.5714 GB, free: 29.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.3419, allocations: 0 / 0.5714 GB, free: 29.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.002016/0.3439, allocations: 0.6559 MB / 0.572 GB, free: 29.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.3439, allocations: 53.22 kB / 0.572 GB, free: 29.37 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.696e-05/0.344, allocations: 104.4 kB / 0.5721 GB, free: 29.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.344, allocations: 35.11 kB / 0.5722 GB, free: 29.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.793e-05/0.3441, allocations: 85.42 kB / 0.5723 GB, free: 29.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.3441, allocations: 40.86 kB / 0.5723 GB, free: 29.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-05/0.3442, allocations: 29.8 kB / 0.5723 GB, free: 29.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.662e-05/0.3442, allocations: 313.6 kB / 0.5726 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.3444, allocations: 35.86 kB / 0.5727 GB, free: 28.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.3446, allocations: 34.45 kB / 0.5727 GB, free: 28.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/0.3449, allocations: 69.48 kB / 0.5728 GB, free: 28.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.3449, allocations: 0 / 0.5728 GB, free: 28.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003312/0.3452, allocations: 120 kB / 0.5729 GB, free: 28.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3452, allocations: 4.969 kB / 0.5729 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3452, allocations: 2.547 kB / 0.5729 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3453, allocations: 1.062 kB / 0.5729 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.3454, allocations: 30.97 kB / 0.5729 GB, free: 28.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.3454, allocations: 5.438 kB / 0.5729 GB, free: 28.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.534e-05/0.3455, allocations: 8.562 kB / 0.5729 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.3455, allocations: 4.25 kB / 0.5729 GB, free: 28.66 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 (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 7.161e-05/0.3456, allocations: 114.3 kB / 0.573 GB, free: 28.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.3456, allocations: 7.75 kB / 0.573 GB, free: 28.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003771/0.346, allocations: 130.1 kB / 0.5732 GB, free: 28.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.346, allocations: 5.406 kB / 0.5732 GB, free: 28.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3461, allocations: 5.75 kB / 0.5732 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3461, allocations: 0.5156 kB / 0.5732 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005556/0.3466, allocations: 384.6 kB / 0.5735 GB, free: 28.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3466, allocations: 0 / 0.5735 GB, free: 28.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.3468, allocations: 26.19 kB / 0.5736 GB, free: 28.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.3468, allocations: 8.906 kB / 0.5736 GB, free: 28.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.3468, allocations: 4.781 kB / 0.5736 GB, free: 28.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.3468, allocations: 1.641 kB / 0.5736 GB, free: 28.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3468, allocations: 0 / 0.5736 GB, free: 28.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004807/0.3473, allocations: 247.9 kB / 0.5738 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.385e-05/0.3474, allocations: 81.27 kB / 0.5739 GB, free: 27.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.3474, allocations: 5.984 kB / 0.5739 GB, free: 27.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.3475, allocations: 11.8 kB / 0.5739 GB, free: 27.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.3475, allocations: 10.11 kB / 0.5739 GB, free: 27.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.3476, allocations: 3.969 kB / 0.5739 GB, free: 27.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.542e-05/0.3476, allocations: 84.62 kB / 0.574 GB, free: 27.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3476, allocations: 3.938 kB / 0.574 GB, free: 27.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004359/0.348, allocations: 40.03 kB / 0.5741 GB, free: 27.76 MB / 446.1 MB 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.00095/0.349, allocations: 0.8198 MB / 0.5749 GB, free: 27.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004497/0.3495, allocations: 85.38 kB / 0.5749 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3495, allocations: 1.406 kB / 0.5749 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001963/0.3497, allocations: 49.91 kB / 0.575 GB, free: 27.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.3501, allocations: 9.375 kB / 0.575 GB, free: 27.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/0.3526, allocations: 1.592 MB / 0.5765 GB, free: 25.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.3528, allocations: 0.6946 MB / 0.5772 GB, free: 25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.228e-05/0.3529, allocations: 17.53 kB / 0.5772 GB, free: 24.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.345e-05/0.353, allocations: 27.2 kB / 0.5773 GB, free: 24.97 MB / 446.1 MB Notification: Performance of SimCode: time 3.61e-07/0.353, allocations: 0 / 0.5773 GB, free: 24.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.3762, allocations: 2.283 MB / 0.5795 GB, free: 24.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.072/7.449, allocations: 14.45 kB / 0.5795 GB, free: 24.59 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)