Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/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_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_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.007252/0.007252, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00175/0.00175, allocations: 193.8 kB / 16.67 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.538/2.538, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 67.89 kB / 1.064 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7812/0.7827, allocations: 159.1 MB / 1.22 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002371/0.7851, allocations: 1.276 MB / 1.221 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.7861, allocations: 0.6149 MB / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.7862, allocations: 0 / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.993e-05/0.7862, allocations: 0 / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.335e-05/0.7863, allocations: 3.938 kB / 1.222 GB, free: 372 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005797/0.7869, allocations: 155.4 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.46e-05/0.7869, allocations: 15.92 kB / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.877e-05/0.787, allocations: 0 / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.956e-05/0.787, allocations: 15.94 kB / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.747e-05/0.7871, allocations: 3.984 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.7871, allocations: 4 kB / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005141/0.7876, allocations: 347.2 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.493e-05/0.7877, allocations: 8 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.414e-05/0.7877, allocations: 7.938 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.7879, allocations: 151.3 kB / 1.222 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.788, allocations: 0 / 1.222 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.833e-06/0.788, allocations: 0 / 1.222 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.788, 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004246/0.7884, allocations: 363 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.7884, allocations: 8.031 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.324e-05/0.7885, allocations: 38.73 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.449e-05/0.7885, allocations: 0.9375 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.7886, allocations: 172.3 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.7886, allocations: 8.375 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.7887, allocations: 384 / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.7888, allocations: 42.25 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.7888, allocations: 3.938 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.7888, allocations: 0 / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.7888, allocations: 0 / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.029e-05/0.7889, allocations: 11.98 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001656/0.789, allocations: 161.7 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.7892, allocations: 50.48 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.459e-05/0.7893, allocations: 16.86 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.7893, allocations: 0 / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.7893, allocations: 38.56 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 8.01e-07/0.7893, allocations: 0 / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0006391/0.79, allocations: 306.3 kB / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.79, allocations: 55.41 kB / 1.223 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.517e-05/0.7901, allocations: 101.8 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.7901, allocations: 25.7 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.7902, allocations: 80.14 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.7902, allocations: 31.77 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.7902, allocations: 17.72 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.7904, allocations: 314.8 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.94e-05/0.7904, allocations: 15.92 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.447e-05/0.7904, allocations: 20.06 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.614e-05/0.7905, allocations: 28.86 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.7905, allocations: 0 / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.958e-05/0.7906, allocations: 73.58 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.7906, allocations: 4 kB / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.7906, allocations: 0 / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.7907, allocations: 3.938 kB / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.756e-05/0.7907, allocations: 19.92 kB / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.7907, allocations: 0 / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.7908, allocations: 0 / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.7908, allocations: 4 kB / 1.224 GB, free: 13.41 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 (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 7.778e-05/0.7908, allocations: 114.4 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.7909, allocations: 3.938 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001429/0.791, allocations: 73.88 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.791, allocations: 0 / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.791, allocations: 0 / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.791, allocations: 0 / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/0.7914, allocations: 319.3 kB / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.7914, allocations: 0 / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.533e-05/0.7915, allocations: 15.98 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.7915, allocations: 0 / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.7915, allocations: 4 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.7915, allocations: 7.938 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.7915, allocations: 0 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.7917, allocations: 184.5 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.7918, allocations: 85.12 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.7918, allocations: 4.516 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.37e-05/0.7919, allocations: 4 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.944e-05/0.7919, allocations: 3.984 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.7919, allocations: 8 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.26e-05/0.7919, allocations: 83.2 kB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.1e-07/0.792, allocations: 0 / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000249/0.7922, allocations: 19.94 kB / 1.225 GB, free: 12.38 MB / 0.9512 GB 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.0005445/0.7928, allocations: 0.7444 MB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001079/0.7929, allocations: 35.92 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.7929, allocations: 0 / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 2.886e-05/0.7929, allocations: 16 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.7932, allocations: 8.125 kB / 1.226 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.7944, allocations: 1.314 MB / 1.227 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.7947, allocations: 0.6885 MB / 1.228 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.511e-05/0.7947, allocations: 7.906 kB / 1.228 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.451e-05/0.7947, allocations: 15.42 kB / 1.228 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of SimCode: time 3.71e-07/0.7947, allocations: 0 / 1.228 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.8143, allocations: 1.642 MB / 1.229 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.099/8.914, allocations: 8.125 kB / 1.229 GB, free: 7.949 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_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_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)