Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_10_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_10_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.008359/0.008359, allocations: 99.75 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.001942/0.001942, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.607/2.607, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.91 kB / 1.018 GB, free: 9.895 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8632/0.8651, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002529/0.8677, allocations: 1.286 MB / 1.167 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.8688, allocations: 0.6135 MB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.886e-05/0.8689, allocations: 0 / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.265e-05/0.8689, allocations: 0 / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.513e-05/0.869, allocations: 11.92 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006336/0.8696, allocations: 139.4 kB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.836e-05/0.8697, allocations: 15.94 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.8697, allocations: 15.97 kB / 1.168 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.057e-05/0.8698, allocations: 7.938 kB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.099e-05/0.8698, allocations: 8 kB / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.8699, allocations: 0 / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005571/0.8704, allocations: 347.3 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.353e-05/0.8705, allocations: 3.938 kB / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.554e-05/0.8705, allocations: 7.984 kB / 1.169 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.8708, allocations: 147.2 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.8708, allocations: 0 / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8708, allocations: 3.938 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.8708, allocations: 4 kB / 1.169 GB, free: 1.172 MB / 0.8887 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.0005071/0.8713, allocations: 367.1 kB / 1.169 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.8714, allocations: 12.03 kB / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.016e-05/0.8714, allocations: 30.75 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.984e-05/0.8715, allocations: 0.9375 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.8716, allocations: 172.3 kB / 1.169 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.8716, allocations: 384 / 1.169 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.8716, allocations: 4.312 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.8718, allocations: 42.25 kB / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.8718, allocations: 7.938 kB / 1.169 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.707e-06/0.8718, allocations: 0 / 1.169 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.8718, allocations: 0 / 1.169 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.033e-05/0.8719, allocations: 15.98 kB / 1.169 GB, free: 440 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.8721, allocations: 157.7 kB / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.8723, allocations: 54.48 kB / 1.17 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.6e-05/0.8723, allocations: 12.86 kB / 1.17 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.8724, allocations: 8 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.8724, allocations: 34.64 kB / 1.17 GB, free: 100 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.8724, allocations: 0 / 1.17 GB, free: 100 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0007142/0.8731, allocations: 302.4 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.8732, allocations: 55.41 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.751e-05/0.8733, allocations: 93.86 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.8733, allocations: 33.69 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.188e-05/0.8733, allocations: 84.14 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.231e-05/0.8734, allocations: 19.8 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.256e-05/0.8734, allocations: 21.72 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.8736, allocations: 318.8 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.747e-05/0.8736, allocations: 8 kB / 1.17 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.182e-05/0.8736, allocations: 8 kB / 1.17 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.895e-05/0.8737, allocations: 40.78 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.8737, allocations: 0 / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001158/0.8738, allocations: 77.56 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.8739, allocations: 4 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.8739, allocations: 0 / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.8739, allocations: 4 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.235e-05/0.874, allocations: 8 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.874, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.815e-05/0.874, allocations: 3.938 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.874, allocations: 8 kB / 1.171 GB, free: 14.92 MB / 0.9044 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 8.75e-05/0.8741, allocations: 109.8 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/0.8741, allocations: 15.92 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.8743, allocations: 77.55 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.8743, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.8743, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.8743, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003634/0.8747, allocations: 319.3 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.8747, allocations: 0 / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.317e-05/0.8748, allocations: 8 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.8748, allocations: 0 / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.8748, allocations: 8.031 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.8748, allocations: 0 / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.8748, allocations: 0 / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.8751, allocations: 188.2 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.8751, allocations: 77.11 kB / 1.171 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.8751, allocations: 4 kB / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.107e-05/0.8752, allocations: 8.047 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.8753, allocations: 4.516 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.8753, allocations: 4 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.406e-05/0.8753, allocations: 79.28 kB / 1.171 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8753, allocations: 0 / 1.171 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002497/0.8756, allocations: 23.92 kB / 1.172 GB, free: 13.89 MB / 0.9044 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.0006127/0.8762, allocations: 0.7406 MB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001268/0.8764, allocations: 36.17 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8764, allocations: 4 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.8764, allocations: 19.98 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.8766, allocations: 4 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.8781, allocations: 1.327 MB / 1.174 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.8784, allocations: 0.6807 MB / 1.174 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.45e-05/0.8784, allocations: 8.312 kB / 1.174 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.153e-05/0.8785, allocations: 11.44 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of SimCode: time 5.61e-07/0.8785, allocations: 3.938 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.9036, allocations: 1.637 MB / 1.176 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/8.971, allocations: 18.66 kB / 1.176 GB, free: 9.457 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)