Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.007196/0.007196, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001695/0.001695, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.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.644/2.644, allocations: 437 MB / 0.7105 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.91 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3235, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002609/0.3261, allocations: 1.271 MB / 1.167 GB, free: 6.066 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.3273, allocations: 0.6113 MB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.339e-05/0.3273, allocations: 0 / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.3273, allocations: 4 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.169e-05/0.3274, allocations: 3.938 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000667/0.3281, allocations: 155.4 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.666e-05/0.3282, allocations: 11.94 kB / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.605e-05/0.3282, allocations: 0 / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.79e-05/0.3283, allocations: 11.98 kB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.544e-05/0.3283, allocations: 11.92 kB / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.3284, allocations: 4 kB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005686/0.3289, allocations: 343.3 kB / 1.169 GB, free: 4.918 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.76e-05/0.329, allocations: 7.922 kB / 1.169 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.409e-05/0.329, allocations: 11.94 kB / 1.169 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003505/0.3294, allocations: 151.8 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3294, allocations: 0 / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.665e-06/0.3294, allocations: 0 / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.187e-05/0.3294, allocations: 0 / 1.169 GB, free: 4.75 MB / 0.92 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.0005538/0.33, allocations: 363.1 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.33, allocations: 8.031 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.3301, allocations: 34.75 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.3301, allocations: 4.938 kB / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.3302, allocations: 168.3 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.3303, allocations: 4.375 kB / 1.169 GB, free: 4.082 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.155e-05/0.3303, allocations: 4.375 kB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.3304, allocations: 42.19 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3304, allocations: 7.938 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.3304, allocations: 0 / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3305, allocations: 0 / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.165e-05/0.3305, allocations: 7.984 kB / 1.169 GB, free: 4.016 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001978/0.3307, allocations: 165.7 kB / 1.169 GB, free: 3.805 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.3309, allocations: 42.5 kB / 1.17 GB, free: 3.754 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.724e-05/0.331, allocations: 16.86 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.331, allocations: 0 / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.331, allocations: 34.5 kB / 1.17 GB, free: 3.691 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.3311, allocations: 0 / 1.17 GB, free: 3.691 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0007288/0.3318, allocations: 322.3 kB / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.3318, allocations: 51.41 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.592e-05/0.3319, allocations: 97.86 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.3319, allocations: 25.7 kB / 1.17 GB, free: 3.125 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.619e-05/0.332, allocations: 80.14 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.332, allocations: 27.78 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.3321, allocations: 17.72 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3322, allocations: 318.8 kB / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.966e-05/0.3323, allocations: 12 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.457e-05/0.3323, allocations: 12 kB / 1.17 GB, free: 2.648 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.721e-05/0.3324, allocations: 36.98 kB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.3324, allocations: 3.938 kB / 1.171 GB, free: 2.605 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001094/0.3325, allocations: 65.59 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3325, allocations: 8 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3325, allocations: 3.984 kB / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3325, allocations: 0 / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.085e-05/0.3326, allocations: 15.94 kB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.3326, allocations: 4 kB / 1.171 GB, free: 2.504 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.029e-05/0.3326, allocations: 4.062 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.3327, allocations: 0 / 1.171 GB, free: 2.5 MB / 0.92 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 0.0001013/0.3328, allocations: 113.8 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.3328, allocations: 3.938 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.333, allocations: 77.56 kB / 1.171 GB, free: 2.285 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.333, allocations: 4 kB / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.333, allocations: 0 / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.333, allocations: 4 kB / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003514/0.3333, allocations: 311.4 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3334, allocations: 0 / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.499e-05/0.3334, allocations: 15.98 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3334, allocations: 0 / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3335, allocations: 4 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3335, allocations: 3.938 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3335, allocations: 4 kB / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.3337, allocations: 192.2 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.87e-05/0.3337, allocations: 81.14 kB / 1.171 GB, free: 1.582 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.3338, allocations: 0 / 1.171 GB, free: 1.582 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.031e-05/0.3338, allocations: 0 / 1.171 GB, free: 1.582 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.002e-05/0.3339, allocations: 7.984 kB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.3339, allocations: 4 kB / 1.171 GB, free: 1.57 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.211e-05/0.3339, allocations: 79.28 kB / 1.171 GB, free: 1.492 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3339, allocations: 4.062 kB / 1.171 GB, free: 1.488 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002608/0.3342, allocations: 19.94 kB / 1.171 GB, free: 1.469 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0005495/0.3347, allocations: 0.7463 MB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001214/0.3349, allocations: 36.05 kB / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3349, allocations: 0 / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 2.932e-05/0.3349, allocations: 19.94 kB / 1.172 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.3352, allocations: 3.984 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.3364, allocations: 1.323 MB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.3367, allocations: 0.6807 MB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.731e-05/0.3367, allocations: 12.53 kB / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.3368, allocations: 11.44 kB / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of SimCode: time 4.41e-07/0.3368, allocations: 0 / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.357, allocations: 1.605 MB / 1.176 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/8.063, allocations: 16.03 kB / 1.176 GB, free: 13.07 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)