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.001388/0.001388, allocations: 101.1 kB / 16.27 MB, free: 5.93 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.001562/0.001562, allocations: 187.2 kB / 17.2 MB, free: 5.574 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.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.762/0.762, allocations: 122.9 MB / 413.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.91 kB / 0.4912 GB, free: 7.332 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3338, allocations: 77.92 MB / 0.5673 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002094/0.3359, allocations: 1.267 MB / 0.5685 GB, free: 31.85 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008279/0.3367, allocations: 0.6119 MB / 0.5691 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.645e-05/0.3368, allocations: 3.938 kB / 0.5691 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.3368, allocations: 1.219 kB / 0.5691 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.515e-05/0.3369, allocations: 6.469 kB / 0.5691 GB, free: 31.42 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.3373, allocations: 144.5 kB / 0.5693 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.52e-05/0.3374, allocations: 19.66 kB / 0.5693 GB, free: 31.35 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.3374, allocations: 1.375 kB / 0.5693 GB, free: 31.35 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.988e-05/0.3375, allocations: 9.641 kB / 0.5693 GB, free: 31.35 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.105e-05/0.3375, allocations: 11.11 kB / 0.5693 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.074e-05/0.3375, allocations: 1.125 kB / 0.5693 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004672/0.338, allocations: 345.6 kB / 0.5696 GB, free: 31.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.169e-05/0.338, allocations: 2.156 kB / 0.5696 GB, free: 31.24 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.3381, allocations: 12.61 kB / 0.5697 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002295/0.3383, allocations: 153.3 kB / 0.5698 GB, free: 31.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3383, allocations: 1.953 kB / 0.5698 GB, free: 31.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3383, allocations: 3.938 kB / 0.5698 GB, free: 31.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.3383, allocations: 1.719 kB / 0.5698 GB, free: 31.18 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.0002952/0.3386, allocations: 357.1 kB / 0.5702 GB, free: 30.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.3387, allocations: 10.64 kB / 0.5702 GB, free: 30.8 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.482e-05/0.3387, allocations: 31.84 kB / 0.5702 GB, free: 30.76 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.324e-05/0.3387, allocations: 4.812 kB / 0.5702 GB, free: 30.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.001e-05/0.3388, allocations: 170.8 kB / 0.5704 GB, free: 30.56 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.3388, allocations: 2.562 kB / 0.5704 GB, free: 30.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.3388, allocations: 7.062 kB / 0.5704 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.158e-05/0.3389, allocations: 38.41 kB / 0.5704 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.3389, allocations: 5.844 kB / 0.5704 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.575e-06/0.3389, allocations: 0.5 kB / 0.5704 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.3389, allocations: 2.156 kB / 0.5704 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.32e-05/0.339, allocations: 11.17 kB / 0.5704 GB, free: 30.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000103/0.3391, allocations: 160.9 kB / 0.5706 GB, free: 30.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.3392, allocations: 41.36 kB / 0.5706 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.861e-05/0.3393, allocations: 17.17 kB / 0.5706 GB, free: 30.28 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.3393, allocations: 2.859 kB / 0.5706 GB, free: 30.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.232e-05/0.3393, allocations: 32.28 kB / 0.5707 GB, free: 30.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4): time 2.444e-06/0.3393, allocations: 0.5625 kB / 0.5707 GB, free: 30.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004882/0.3398, allocations: 321.5 kB / 0.571 GB, free: 29.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.28e-05/0.3398, allocations: 53.16 kB / 0.571 GB, free: 29.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.072e-05/0.3399, allocations: 96.36 kB / 0.5711 GB, free: 29.78 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.358e-06/0.3399, allocations: 30.92 kB / 0.5711 GB, free: 29.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.547e-05/0.3399, allocations: 81.78 kB / 0.5712 GB, free: 29.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.34, allocations: 24.41 kB / 0.5713 GB, free: 29.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.021e-05/0.34, allocations: 22.39 kB / 0.5713 GB, free: 29.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.799e-05/0.34, allocations: 313.1 kB / 0.5716 GB, free: 29.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.487e-05/0.3401, allocations: 12.28 kB / 0.5716 GB, free: 29.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.126e-05/0.3401, allocations: 12.39 kB / 0.5716 GB, free: 29.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.106e-05/0.3401, allocations: 35.08 kB / 0.5716 GB, free: 29.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.3402, allocations: 0 / 0.5716 GB, free: 29.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.587e-05/0.3402, allocations: 69.3 kB / 0.5717 GB, free: 29.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.3403, allocations: 5.078 kB / 0.5717 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.3403, allocations: 0 / 0.5717 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.3403, allocations: 2.094 kB / 0.5717 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.838e-05/0.3403, allocations: 15.41 kB / 0.5717 GB, free: 29.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.3403, allocations: 0 / 0.5717 GB, free: 29.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.721e-05/0.3404, allocations: 3.656 kB / 0.5717 GB, free: 29.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3404, allocations: 6.062 kB / 0.5717 GB, free: 29.23 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.355e-05/0.3404, allocations: 117 kB / 0.5718 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.3404, allocations: 6.031 kB / 0.5718 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.3406, allocations: 76.75 kB / 0.5719 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3406, allocations: 2.062 kB / 0.5719 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3406, allocations: 1.781 kB / 0.5719 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3406, allocations: 0 / 0.5719 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.3408, allocations: 316 kB / 0.5722 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3408, allocations: 0 / 0.5722 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.717e-05/0.3409, allocations: 12.03 kB / 0.5722 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.3409, allocations: 1.281 kB / 0.5722 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.3409, allocations: 2.531 kB / 0.5722 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3409, allocations: 0 / 0.5722 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3409, allocations: 1.891 kB / 0.5722 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001481/0.3411, allocations: 186.6 kB / 0.5724 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.147e-05/0.3411, allocations: 85.5 kB / 0.5725 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.3411, allocations: 1.875 kB / 0.5725 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.854e-05/0.3412, allocations: 6.344 kB / 0.5725 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.3412, allocations: 5.375 kB / 0.5725 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3413, allocations: 1.781 kB / 0.5725 GB, free: 28.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.95e-05/0.3413, allocations: 83.62 kB / 0.5726 GB, free: 28.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3413, allocations: 1.656 kB / 0.5726 GB, free: 28.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000234/0.3415, allocations: 19.11 kB / 0.5726 GB, free: 28.38 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.00033/0.3419, allocations: 0.7442 MB / 0.5733 GB, free: 27.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.76e-05/0.342, allocations: 39.39 kB / 0.5734 GB, free: 27.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.342, allocations: 0 / 0.5734 GB, free: 27.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.65e-05/0.342, allocations: 18.28 kB / 0.5734 GB, free: 27.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.3422, allocations: 6.688 kB / 0.5734 GB, free: 27.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008572/0.3431, allocations: 1.32 MB / 0.5747 GB, free: 26.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.626e-05/0.3432, allocations: 0.6832 MB / 0.5754 GB, free: 25.72 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.942e-05/0.3432, allocations: 7.203 kB / 0.5754 GB, free: 25.72 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.549e-05/0.3432, allocations: 15.2 kB / 0.5754 GB, free: 25.71 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.3433, allocations: 0.75 kB / 0.5754 GB, free: 25.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04585/0.3891, allocations: 1.597 MB / 0.5769 GB, free: 25.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.334/7.723, allocations: 13.94 kB / 0.577 GB, free: 25.39 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 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)