Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.008858/0.008858, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002278/0.002278, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.722/2.722, allocations: 469.4 MB / 0.7421 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 67.88 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.307, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002819/0.3099, allocations: 1.479 MB / 1.221 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.311, allocations: 0.6266 MB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.207e-05/0.3111, allocations: 0 / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.734e-05/0.3112, allocations: 3.938 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.794e-05/0.3112, allocations: 11.91 kB / 1.222 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007626/0.312, allocations: 155.4 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.904e-05/0.3121, allocations: 55.83 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.086e-05/0.3122, allocations: 11.98 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.185e-05/0.3122, allocations: 19.92 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.205e-05/0.3123, allocations: 31.84 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.3123, allocations: 4 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005535/0.3129, allocations: 343.3 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.485e-05/0.3129, allocations: 15.97 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.313, allocations: 19.88 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.3133, allocations: 183.3 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3133, allocations: 0 / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3133, allocations: 4 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.3134, allocations: 0 / 1.223 GB, free: 11.7 MB / 0.9825 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.0006963/0.3141, allocations: 406.9 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3141, allocations: 12.02 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.3142, allocations: 34.75 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.3142, allocations: 4.938 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.3143, allocations: 168.3 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.3144, allocations: 8.375 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.698e-05/0.3144, allocations: 12.38 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.3147, allocations: 86.12 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3147, allocations: 3.938 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.3147, allocations: 4 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.3147, allocations: 0 / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.315, allocations: 55.83 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006138/0.3156, allocations: 332.6 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.3159, allocations: 78.53 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.316, allocations: 24.84 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.3161, allocations: 0 / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.3161, allocations: 42.56 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.3161, allocations: 0 / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001724/0.3178, allocations: 0.6425 MB / 1.224 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.3179, allocations: 59.34 kB / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.097e-05/0.318, allocations: 109.7 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.318, allocations: 25.7 kB / 1.225 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.873e-05/0.3181, allocations: 92.09 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.9e-05/0.3181, allocations: 39.64 kB / 1.225 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.064e-05/0.3182, allocations: 29.7 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3183, allocations: 322.8 kB / 1.225 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.3184, allocations: 27.97 kB / 1.225 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.3186, allocations: 31.98 kB / 1.225 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.3188, allocations: 74.58 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.3189, allocations: 0 / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003253/0.3192, allocations: 114.4 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3192, allocations: 8 kB / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.3192, allocations: 7.922 kB / 1.225 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.3192, allocations: 4 kB / 1.225 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.3194, allocations: 27.98 kB / 1.225 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3194, allocations: 3.938 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.645e-05/0.3195, allocations: 4 kB / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.3195, allocations: 4 kB / 1.225 GB, free: 8.52 MB / 0.9825 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 0.0001006/0.3196, allocations: 118.4 kB / 1.226 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.386e-05/0.3197, allocations: 8 kB / 1.226 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003845/0.32, allocations: 129.5 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3201, allocations: 0 / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3201, allocations: 3.938 kB / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3201, allocations: 0 / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00059/0.3207, allocations: 390.5 kB / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3207, allocations: 0 / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.3209, allocations: 27.98 kB / 1.226 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3209, allocations: 7.922 kB / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3209, allocations: 3.984 kB / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3209, allocations: 4 kB / 1.226 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3209, allocations: 0 / 1.226 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005111/0.3214, allocations: 255.4 kB / 1.226 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.739e-05/0.3215, allocations: 77.11 kB / 1.226 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.3215, allocations: 11.97 kB / 1.226 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.3216, allocations: 7.938 kB / 1.226 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.3217, allocations: 7.984 kB / 1.226 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.3217, allocations: 4 kB / 1.226 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.232e-05/0.3217, allocations: 87.2 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3218, allocations: 0 / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002951/0.3221, allocations: 43.81 kB / 1.227 GB, free: 7.242 MB / 0.9825 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.0009593/0.323, allocations: 0.81 MB / 1.227 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003493/0.3234, allocations: 88.33 kB / 1.227 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.3234, allocations: 4.062 kB / 1.227 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.3236, allocations: 48.45 kB / 1.227 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.3239, allocations: 9.875 kB / 1.227 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.3261, allocations: 1.599 MB / 1.229 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.3264, allocations: 0.6962 MB / 1.23 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.187e-05/0.3265, allocations: 12.75 kB / 1.23 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.464e-05/0.3266, allocations: 27.42 kB / 1.23 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of SimCode: time 5.31e-07/0.3266, allocations: 0 / 1.23 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.3484, allocations: 2.336 MB / 1.232 GB, free: 1.676 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.147/8.496, allocations: 12.91 kB / 1.232 GB, free: 1.668 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)