Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001328/0.001328, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.396/2.396, allocations: 390.2 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 59.91 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5976/0.5991, allocations: 140.4 MB / 0.9497 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001978/0.6011, allocations: 1.272 MB / 0.951 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007955/0.6019, allocations: 0.6121 MB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.434e-05/0.6019, allocations: 0 / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.7e-05/0.602, allocations: 0 / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.118e-05/0.602, allocations: 12.95 kB / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004475/0.6025, allocations: 148.5 kB / 0.9517 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.464e-05/0.6025, allocations: 17.03 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.21e-05/0.6026, allocations: 8.875 kB / 0.9517 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.271e-05/0.6026, allocations: 4.656 kB / 0.9517 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.559e-05/0.6027, allocations: 16.03 kB / 0.9518 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.6027, allocations: 1.375 kB / 0.9518 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004292/0.6031, allocations: 341.1 kB / 0.9521 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.13e-05/0.6031, allocations: 9.484 kB / 0.9521 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.238e-05/0.6032, allocations: 7.281 kB / 0.9521 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.6034, allocations: 147.5 kB / 0.9522 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.6034, allocations: 0 / 0.9522 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6034, allocations: 1.344 kB / 0.9522 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.6034, allocations: 0 / 0.9522 GB, free: 7.195 MB / 0.7169 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.0003093/0.6037, allocations: 362.9 kB / 0.9526 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.6038, allocations: 9.875 kB / 0.9526 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.262e-05/0.6038, allocations: 30.75 kB / 0.9526 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.444e-05/0.6038, allocations: 3.5 kB / 0.9526 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.844e-05/0.6039, allocations: 181.5 kB / 0.9528 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.677e-06/0.6039, allocations: 1.719 kB / 0.9528 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.6039, allocations: 1.781 kB / 0.9528 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.234e-05/0.604, allocations: 40.59 kB / 0.9528 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.604, allocations: 3.938 kB / 0.9529 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.604, allocations: 1.531 kB / 0.9529 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.604, allocations: 3.938 kB / 0.9529 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.457e-05/0.6041, allocations: 13.67 kB / 0.9529 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001084/0.6042, allocations: 159.5 kB / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.6044, allocations: 50.92 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.948e-05/0.6044, allocations: 16.77 kB / 0.9531 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.6044, allocations: 1.156 kB / 0.9531 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.276e-05/0.6044, allocations: 35.67 kB / 0.9531 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.6044, allocations: 0 / 0.9531 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004943/0.6049, allocations: 307.3 kB / 0.9534 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.116e-05/0.605, allocations: 56.78 kB / 0.9535 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.499e-05/0.605, allocations: 97.11 kB / 0.9536 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.905e-06/0.605, allocations: 26.95 kB / 0.9536 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.309e-05/0.605, allocations: 80.14 kB / 0.9537 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.6051, allocations: 22.56 kB / 0.9537 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.908e-05/0.6051, allocations: 23.69 kB / 0.9537 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.421e-05/0.6051, allocations: 322.8 kB / 0.954 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.255e-05/0.6052, allocations: 7 kB / 0.954 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.013e-05/0.6052, allocations: 15.17 kB / 0.954 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.854e-05/0.6052, allocations: 31.3 kB / 0.9541 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.6053, allocations: 1.531 kB / 0.9541 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.355e-05/0.6053, allocations: 67.83 kB / 0.9541 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.6054, allocations: 4.875 kB / 0.9541 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.6054, allocations: 1 kB / 0.9541 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.6054, allocations: 0 / 0.9541 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.975e-05/0.6054, allocations: 14.84 kB / 0.9542 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.6054, allocations: 4 kB / 0.9542 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.771e-05/0.6055, allocations: 3.984 kB / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.6055, allocations: 10.53 kB / 0.9542 GB, free: 5.156 MB / 0.7169 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 4.254e-05/0.6055, allocations: 111.4 kB / 0.9543 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.6055, allocations: 6.344 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.6057, allocations: 78.06 kB / 0.9544 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.6057, allocations: 1.125 kB / 0.9544 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.6057, allocations: 0 / 0.9544 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.6057, allocations: 5.156 kB / 0.9544 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000219/0.6059, allocations: 316.1 kB / 0.9547 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.6059, allocations: 0 / 0.9547 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.027e-05/0.606, allocations: 17.56 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.606, allocations: 1.219 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/0.606, allocations: 1.219 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.606, allocations: 1.125 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.606, allocations: 1.188 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000132/0.6062, allocations: 181.2 kB / 0.9549 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.6062, allocations: 80.11 kB / 0.9549 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.6062, allocations: 8.984 kB / 0.9549 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.947e-05/0.6063, allocations: 1.188 kB / 0.9549 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.6063, allocations: 3.5 kB / 0.9549 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.6063, allocations: 0.9375 kB / 0.9549 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.763e-05/0.6063, allocations: 78.53 kB / 0.955 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6064, allocations: 8 kB / 0.955 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002451/0.6066, allocations: 27.05 kB / 0.9551 GB, free: 4.254 MB / 0.7169 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.0003121/0.6069, allocations: 0.7354 MB / 0.9558 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.209e-05/0.607, allocations: 41.45 kB / 0.9558 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.607, allocations: 4.062 kB / 0.9558 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.75e-05/0.6071, allocations: 19.45 kB / 0.9558 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.6073, allocations: 10.91 kB / 0.9558 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008792/0.6082, allocations: 1.317 MB / 0.9571 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.411e-05/0.6083, allocations: 0.6837 MB / 0.9578 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.93e-05/0.6083, allocations: 6.828 kB / 0.9578 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.844e-05/0.6084, allocations: 11.47 kB / 0.9578 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.6084, allocations: 0 / 0.9578 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.6265, allocations: 1.605 MB / 0.9594 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.385, allocations: 5.531 kB / 0.9594 GB, free: 0.668 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)