Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.005906/0.005906, allocations: 96.2 kB / 15.73 MB, free: 6.039 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.001321/0.001321, allocations: 197 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.603/2.603, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 64.14 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3134, allocations: 151.6 MB / 1.166 GB, free: 7.348 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002908/0.3164, allocations: 1.271 MB / 1.167 GB, free: 6.062 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.3175, allocations: 0.6308 MB / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.11e-05/0.3176, allocations: 0 / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.568e-05/0.3176, allocations: 3.938 kB / 1.168 GB, free: 5.426 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.124e-05/0.3177, allocations: 7.922 kB / 1.168 GB, free: 5.418 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009693/0.3187, allocations: 143.4 kB / 1.168 GB, free: 5.277 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.54e-05/0.3188, allocations: 27.91 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 6.665e-05/0.3189, allocations: 8 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.961e-05/0.3189, allocations: 15.92 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.755e-05/0.319, allocations: 8 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.319, allocations: 7.938 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008277/0.3199, allocations: 343.3 kB / 1.169 GB, free: 4.875 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.766e-05/0.3199, allocations: 7.984 kB / 1.169 GB, free: 4.867 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.32, allocations: 11.94 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.3204, allocations: 155.8 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3204, allocations: 0 / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3204, allocations: 0 / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.3204, allocations: 0 / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005973/0.321, allocations: 379 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.588e-05/0.3211, allocations: 8.031 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.836e-05/0.3212, allocations: 34.75 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.965e-05/0.3212, allocations: 0.9375 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.3214, allocations: 172.3 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.3214, allocations: 4.375 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/0.3215, allocations: 4.375 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.3217, allocations: 50.25 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.3217, allocations: 11.88 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3218, allocations: 0 / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.3218, allocations: 0 / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.678e-05/0.3219, allocations: 19.98 kB / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003066/0.3222, allocations: 169.6 kB / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.3224, allocations: 62.53 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.335e-05/0.3225, allocations: 24.86 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.3226, allocations: 4 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.991e-05/0.3226, allocations: 46.42 kB / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/0.3226, allocations: 0 / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.002013/0.3247, allocations: 0.5879 MB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.3248, allocations: 55.41 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.3249, allocations: 97.84 kB / 1.17 GB, free: 2.707 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.3249, allocations: 29.7 kB / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.313e-05/0.325, allocations: 84.14 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 7.785e-05/0.3251, allocations: 43.56 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.543e-05/0.3252, allocations: 25.72 kB / 1.171 GB, free: 2.512 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.3254, allocations: 318.8 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.252e-05/0.3255, allocations: 16 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.323e-05/0.3256, allocations: 28.11 kB / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.3257, allocations: 64.84 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3258, allocations: 0 / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002788/0.326, allocations: 102.8 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.3261, allocations: 4 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3261, allocations: 0 / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.3261, allocations: 4 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.3263, allocations: 19.98 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.3263, allocations: 0 / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.373e-05/0.3264, allocations: 12 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/0.3264, allocations: 4 kB / 1.171 GB, free: 1.934 MB / 0.92 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.0001313/0.3266, allocations: 117.8 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.3266, allocations: 7.938 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003157/0.327, allocations: 109.5 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.327, allocations: 0 / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.327, allocations: 4 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.327, allocations: 0 / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006192/0.3276, allocations: 350.5 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3277, allocations: 4.094 kB / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.3279, allocations: 27.92 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3279, allocations: 0 / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3279, allocations: 0 / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.3279, allocations: 0 / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3279, allocations: 0 / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003969/0.3283, allocations: 223.3 kB / 1.172 GB, free: 1.012 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.988e-05/0.3284, allocations: 77.11 kB / 1.172 GB, free: 0.918 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.3285, allocations: 16.08 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3286, allocations: 0 / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.963e-05/0.3287, allocations: 4 kB / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.3287, allocations: 11.98 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.152e-05/0.3288, allocations: 75.28 kB / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.81e-07/0.3288, allocations: 0 / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005352/0.3293, allocations: 35.88 kB / 1.172 GB, free: 0.7773 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.001091/0.3304, allocations: 0.7865 MB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002407/0.3307, allocations: 59.52 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.3307, allocations: 8 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.146e-05/0.3308, allocations: 31.88 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.3312, allocations: 12.2 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.3336, allocations: 1.512 MB / 1.174 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.334, allocations: 0.6846 MB / 1.175 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.791e-05/0.3341, allocations: 11.98 kB / 1.175 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.372e-05/0.3342, allocations: 15.44 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of SimCode: time 7.92e-07/0.3342, allocations: 0 / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02848/0.3627, allocations: 2.073 MB / 1.177 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/7.937, allocations: 13.98 kB / 1.177 GB, free: 11.63 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)