Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.008622/0.008623, allocations: 97.3 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.001996/0.001996, allocations: 202 kB / 16.68 MB, free: 5.961 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.885/2.885, allocations: 472.7 MB / 0.7453 GB, free: 4.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001563, allocations: 71.83 kB / 1.069 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3512, allocations: 159.9 MB / 1.225 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002947/0.3542, allocations: 1.486 MB / 1.227 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.3555, allocations: 0.6266 MB / 1.227 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.436e-05/0.3556, allocations: 0 / 1.227 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.912e-05/0.3557, allocations: 3.938 kB / 1.227 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.257e-05/0.3558, allocations: 11.92 kB / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007744/0.3565, allocations: 159.4 kB / 1.227 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.3567, allocations: 51.83 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.783e-05/0.3567, allocations: 4 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.793e-05/0.3568, allocations: 27.92 kB / 1.228 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.511e-05/0.3569, allocations: 23.86 kB / 1.228 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.3569, allocations: 7.984 kB / 1.228 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005944/0.3575, allocations: 343.3 kB / 1.228 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.3575, allocations: 11.97 kB / 1.228 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.426e-05/0.3576, allocations: 23.88 kB / 1.228 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.358, allocations: 183.3 kB / 1.228 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.358, allocations: 4 kB / 1.228 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.533e-06/0.358, allocations: 4 kB / 1.228 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.358, allocations: 0 / 1.228 GB, free: 6.66 MB / 0.9825 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.0006887/0.3587, allocations: 402.9 kB / 1.228 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3587, allocations: 8.031 kB / 1.228 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.3588, allocations: 38.73 kB / 1.229 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.3588, allocations: 8.938 kB / 1.229 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.359, allocations: 176.2 kB / 1.229 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.359, allocations: 12.38 kB / 1.229 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.3591, allocations: 4.375 kB / 1.229 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/0.3593, allocations: 78.2 kB / 1.229 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3594, allocations: 7.875 kB / 1.229 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.3594, allocations: 4 kB / 1.229 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.3594, allocations: 4 kB / 1.229 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002393/0.3596, allocations: 47.95 kB / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006289/0.3603, allocations: 324.6 kB / 1.229 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.3606, allocations: 78.53 kB / 1.229 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.3607, allocations: 29 kB / 1.229 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.3608, allocations: 7.984 kB / 1.229 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.3608, allocations: 30.56 kB / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 5.78e-06/0.3608, allocations: 3.984 kB / 1.229 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001881/0.3627, allocations: 0.6539 MB / 1.23 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.3628, allocations: 51.41 kB / 1.23 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.3629, allocations: 105.8 kB / 1.23 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3629, allocations: 29.7 kB / 1.23 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.363, allocations: 84.09 kB / 1.23 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.383e-05/0.363, allocations: 47.64 kB / 1.23 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.309e-05/0.3631, allocations: 33.7 kB / 1.23 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3633, allocations: 310.8 kB / 1.231 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.3634, allocations: 35.97 kB / 1.231 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.3636, allocations: 30.98 kB / 1.231 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.3638, allocations: 68.83 kB / 1.231 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3639, allocations: 0 / 1.231 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003555/0.3642, allocations: 129.7 kB / 1.231 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.3643, allocations: 4 kB / 1.231 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3643, allocations: 0 / 1.231 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.3643, allocations: 3.984 kB / 1.231 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.3645, allocations: 23.98 kB / 1.231 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.3645, allocations: 7.938 kB / 1.231 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.945e-05/0.3646, allocations: 4 kB / 1.231 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.3646, allocations: 4 kB / 1.231 GB, free: 3.492 MB / 0.9825 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 0.0001418/0.3648, allocations: 126.3 kB / 1.231 GB, free: 3.359 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.228e-05/0.3648, allocations: 4 kB / 1.231 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004226/0.3652, allocations: 121.5 kB / 1.231 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3652, allocations: 0 / 1.231 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.3653, allocations: 7.938 kB / 1.231 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3653, allocations: 96 / 1.231 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007343/0.366, allocations: 394.3 kB / 1.231 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.366, allocations: 0 / 1.231 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.3662, allocations: 27.98 kB / 1.232 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.3662, allocations: 7.938 kB / 1.232 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.3662, allocations: 0 / 1.232 GB, free: 2.738 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.3662, allocations: 7.984 kB / 1.232 GB, free: 2.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3662, allocations: 0 / 1.232 GB, free: 2.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005898/0.3668, allocations: 251.7 kB / 1.232 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.3669, allocations: 81.14 kB / 1.232 GB, free: 2.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.3669, allocations: 3.938 kB / 1.232 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.3671, allocations: 8 kB / 1.232 GB, free: 2.359 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.944e-05/0.3671, allocations: 11.92 kB / 1.232 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.3671, allocations: 4 kB / 1.232 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.051e-05/0.3672, allocations: 87.27 kB / 1.232 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3672, allocations: 0 / 1.232 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003298/0.3675, allocations: 39.88 kB / 1.232 GB, free: 2.219 MB / 0.9825 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.001124/0.3687, allocations: 0.818 MB / 1.233 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000407/0.3691, allocations: 87.95 kB / 1.233 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3691, allocations: 0 / 1.233 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.3693, allocations: 47.91 kB / 1.233 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.3697, allocations: 8 kB / 1.233 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.3722, allocations: 1.609 MB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.3725, allocations: 0.6929 MB / 1.235 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.986e-05/0.3726, allocations: 16.59 kB / 1.235 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.035e-05/0.3727, allocations: 27.42 kB / 1.235 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of SimCode: time 3.81e-07/0.3727, allocations: 0 / 1.235 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.4, allocations: 2.333 MB / 1.237 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.736/8.136, allocations: 9.406 kB / 1.238 GB, free: 12.64 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)