Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 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_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001662/0.001663, 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.001718/0.001718, allocations: 193.6 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.329/2.329, allocations: 390.3 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 63.89 kB / 0.8127 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5956/0.597, allocations: 140.4 MB / 0.9497 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00222/0.5992, allocations: 1.462 MB / 0.9512 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008545/0.6001, allocations: 0.6249 MB / 0.9518 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.6002, allocations: 4 kB / 0.9518 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.743e-05/0.6002, allocations: 3.938 kB / 0.9518 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.061e-05/0.6002, allocations: 13.2 kB / 0.9518 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.6007, allocations: 159 kB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.745e-05/0.6008, allocations: 46.45 kB / 0.952 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.368e-05/0.6009, allocations: 7.734 kB / 0.952 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.102e-05/0.6009, allocations: 25.73 kB / 0.952 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.306e-05/0.601, allocations: 27.78 kB / 0.952 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.601, allocations: 3.438 kB / 0.952 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004249/0.6014, allocations: 349.3 kB / 0.9524 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.6014, allocations: 14.77 kB / 0.9524 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.255e-05/0.6015, allocations: 23.72 kB / 0.9524 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002493/0.6017, allocations: 172.5 kB / 0.9526 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.6017, allocations: 5.281 kB / 0.9526 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.062e-06/0.6017, allocations: 0 / 0.9526 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.6018, allocations: 0 / 0.9526 GB, free: 7.074 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004964/0.6023, allocations: 399 kB / 0.953 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.6023, allocations: 9.906 kB / 0.953 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.052e-05/0.6023, allocations: 44.64 kB / 0.953 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.6024, allocations: 8.625 kB / 0.953 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.484e-05/0.6024, allocations: 170.6 kB / 0.9532 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.6025, allocations: 6.594 kB / 0.9532 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.6025, allocations: 9.125 kB / 0.9532 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.6027, allocations: 82.92 kB / 0.9533 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.6027, allocations: 9.344 kB / 0.9533 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.6027, allocations: 4 kB / 0.9533 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.6028, allocations: 1.438 kB / 0.9533 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.603, allocations: 48.11 kB / 0.9533 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004898/0.6035, allocations: 325.9 kB / 0.9537 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.6038, allocations: 79.09 kB / 0.9537 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.6039, allocations: 31.88 kB / 0.9538 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.6039, allocations: 1.5 kB / 0.9538 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.604, allocations: 35.75 kB / 0.9538 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.604, allocations: 4 kB / 0.9538 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001511/0.6055, allocations: 0.6554 MB / 0.9544 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/0.6055, allocations: 53.75 kB / 0.9545 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.765e-05/0.6056, allocations: 101.8 kB / 0.9546 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.6056, allocations: 31.61 kB / 0.9546 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.279e-05/0.6056, allocations: 86.23 kB / 0.9547 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.922e-05/0.6056, allocations: 43.73 kB / 0.9547 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.023e-05/0.6057, allocations: 25.77 kB / 0.9548 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.019e-05/0.6057, allocations: 321.1 kB / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.6059, allocations: 34.16 kB / 0.9551 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.606, allocations: 26.58 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.6062, allocations: 73.58 kB / 0.9552 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.6063, allocations: 3.938 kB / 0.9552 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002945/0.6066, allocations: 119.1 kB / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.6066, allocations: 9.656 kB / 0.9553 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.6066, allocations: 0 / 0.9553 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.6066, allocations: 4.984 kB / 0.9553 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.6068, allocations: 24.98 kB / 0.9554 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.6068, allocations: 3.938 kB / 0.9554 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.49e-05/0.6068, allocations: 8.031 kB / 0.9554 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.6068, allocations: 2.688 kB / 0.9554 GB, free: 4.453 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 (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 5.477e-05/0.6069, allocations: 121.3 kB / 0.9555 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.179e-05/0.6069, allocations: 10.06 kB / 0.9555 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003537/0.6073, allocations: 119.5 kB / 0.9556 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.6073, allocations: 2.406 kB / 0.9556 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.6073, allocations: 7.875 kB / 0.9556 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.6073, allocations: 0 / 0.9556 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000476/0.6078, allocations: 389.6 kB / 0.956 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.6078, allocations: 4 kB / 0.956 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.608, allocations: 27.95 kB / 0.956 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.608, allocations: 5.188 kB / 0.956 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.608, allocations: 1.156 kB / 0.956 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.608, allocations: 5.078 kB / 0.956 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.608, allocations: 0 / 0.956 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.6085, allocations: 263.2 kB / 0.9563 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.557e-05/0.6085, allocations: 81.02 kB / 0.9564 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.6085, allocations: 5 kB / 0.9564 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.6087, allocations: 9.219 kB / 0.9564 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.9e-05/0.6087, allocations: 6.578 kB / 0.9564 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.6087, allocations: 3.844 kB / 0.9564 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.32e-05/0.6087, allocations: 82.55 kB / 0.9565 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6087, allocations: 0 / 0.9565 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002904/0.609, allocations: 38.34 kB / 0.9565 GB, free: 3.445 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.0007305/0.6098, allocations: 0.8209 MB / 0.9573 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003413/0.6101, allocations: 84.8 kB / 0.9574 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.6101, allocations: 4.062 kB / 0.9574 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.6103, allocations: 44 kB / 0.9574 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.6106, allocations: 9.312 kB / 0.9574 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.6123, allocations: 1.592 MB / 0.959 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001066/0.6124, allocations: 0.6939 MB / 0.9597 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.894e-05/0.6125, allocations: 19.47 kB / 0.9597 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.6125, allocations: 22.31 kB / 0.9597 GB, free: 492 kB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.6125, allocations: 0 / 0.9597 GB, free: 492 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.631, allocations: 2.288 MB / 0.9619 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.691/8.322, allocations: 16.56 kB / 0.962 GB, free: 15.31 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)