Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.008839/0.008838, allocations: 102.8 kB / 15.74 MB, free: 5.551 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.002079/0.002079, allocations: 194.2 kB / 16.67 MB, free: 5.48 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.676/2.676, allocations: 469.4 MB / 0.7422 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 59.91 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7873/0.7887, allocations: 159.1 MB / 1.22 GB, free: 2.316 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002672/0.7914, allocations: 1.29 MB / 1.221 GB, free: 1.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001105/0.7926, allocations: 0.6071 MB / 1.222 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.566e-05/0.7926, allocations: 4 kB / 1.222 GB, free: 416 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.303e-05/0.7927, allocations: 7.938 kB / 1.222 GB, free: 408 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.669e-05/0.7928, allocations: 0 / 1.222 GB, free: 408 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007025/0.7935, allocations: 155.3 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.672e-05/0.7936, allocations: 31.86 kB / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.553e-05/0.7936, allocations: 0 / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.023e-05/0.7936, allocations: 19.91 kB / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.966e-05/0.7937, allocations: 11.94 kB / 1.222 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.7938, allocations: 4 kB / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005429/0.7943, allocations: 343.3 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.7943, allocations: 11.97 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.005e-05/0.7944, allocations: 11.94 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003347/0.7947, allocations: 147.3 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.7947, allocations: 8 kB / 1.222 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7947, allocations: 0 / 1.222 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.7948, allocations: 0 / 1.222 GB, free: 15.67 MB / 0.9512 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.0005161/0.7953, allocations: 375 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.7953, allocations: 12.03 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.7954, allocations: 34.75 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.293e-05/0.7954, allocations: 8.891 kB / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.7956, allocations: 160.4 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.7956, allocations: 4.375 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.8e-05/0.7956, allocations: 8.359 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001511/0.7958, allocations: 46.25 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.7958, allocations: 11.86 kB / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.7958, allocations: 0 / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.7959, allocations: 4 kB / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.687e-05/0.7959, allocations: 23.92 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002265/0.7962, allocations: 161.7 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.7963, allocations: 58.56 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.927e-05/0.7964, allocations: 28.84 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.7964, allocations: 0 / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.7964, allocations: 34.56 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.7964, allocations: 4 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.001392/0.7978, allocations: 0.5956 MB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.7979, allocations: 55.34 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.017e-05/0.798, allocations: 105.8 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.798, allocations: 25.7 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.782e-05/0.7981, allocations: 80.14 kB / 1.224 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.554e-05/0.7981, allocations: 43.67 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.943e-05/0.7982, allocations: 25.72 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.7983, allocations: 318.8 kB / 1.224 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.499e-05/0.7984, allocations: 20 kB / 1.224 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.043e-05/0.7984, allocations: 19.98 kB / 1.224 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.7985, allocations: 56.86 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.7986, allocations: 8.109 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001737/0.7987, allocations: 104.9 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.7988, allocations: 8 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.7988, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.7988, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.7989, allocations: 27.98 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.799, allocations: 0 / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.93e-05/0.799, allocations: 0 / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.799, allocations: 4 kB / 1.225 GB, free: 12.92 MB / 0.9512 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 8.232e-05/0.7991, allocations: 114.4 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.7991, allocations: 11.89 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002107/0.7993, allocations: 117.5 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.7993, allocations: 4 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.7994, allocations: 0 / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.7994, allocations: 0 / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.7998, allocations: 350.5 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.7998, allocations: 0 / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.7999, allocations: 23.92 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.7999, allocations: 4 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.7999, allocations: 8 kB / 1.225 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.8, allocations: 0 / 1.225 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8, allocations: 0 / 1.225 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.8002, allocations: 215.4 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.8003, allocations: 81.14 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.8003, allocations: 3.984 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.281e-05/0.8004, allocations: 8.078 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.7e-05/0.8004, allocations: 12 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.8004, allocations: 4 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.742e-05/0.8005, allocations: 83.27 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.8005, allocations: 0 / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002891/0.8008, allocations: 35.88 kB / 1.226 GB, free: 11.75 MB / 0.9512 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.0006535/0.8014, allocations: 0.7904 MB / 1.226 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001828/0.8016, allocations: 63.91 kB / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.8016, allocations: 0 / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 6.439e-05/0.8017, allocations: 31.94 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.802, allocations: 4 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.8036, allocations: 1.499 MB / 1.228 GB, free: 9.258 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.8039, allocations: 0.7001 MB / 1.229 GB, free: 8.531 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.605e-05/0.8039, allocations: 7.938 kB / 1.229 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.662e-05/0.804, allocations: 23.44 kB / 1.229 GB, free: 8.5 MB / 0.9512 GB Notification: Performance of SimCode: time 5.61e-07/0.804, allocations: 0 / 1.229 GB, free: 8.5 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.8254, allocations: 2.096 MB / 1.231 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.062/8.887, allocations: 8.203 kB / 1.231 GB, free: 6.586 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)