Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_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_latest_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.001494/0.001494, allocations: 108 kB / 15.61 MB, free: 152 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.001297/0.001297, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.825/2.825, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 60.44 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3166, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002497/0.3191, allocations: 1.271 MB / 1.065 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009867/0.3201, allocations: 0.6088 MB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.924e-05/0.3202, allocations: 0 / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.3202, allocations: 3.938 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.502e-05/0.3203, allocations: 0 / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006139/0.3209, allocations: 149.9 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.52e-05/0.321, allocations: 19.92 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.814e-05/0.321, allocations: 8 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.332e-05/0.321, allocations: 7.938 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.963e-05/0.3211, allocations: 19.91 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.3211, allocations: 4 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005006/0.3216, allocations: 339.3 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.3216, allocations: 0 / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.3217, allocations: 11.92 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002614/0.3219, allocations: 151.9 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.322, allocations: 0 / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.313e-06/0.322, allocations: 0 / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.322, allocations: 0 / 1.066 GB, free: 11.94 MB / 0.8262 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.0004043/0.3224, allocations: 367.4 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3224, allocations: 8.031 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.7e-05/0.3225, allocations: 38.73 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/0.3225, allocations: 12.83 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.3226, allocations: 164.3 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.3227, allocations: 384 / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.3227, allocations: 4.375 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.3228, allocations: 38.25 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3228, allocations: 7.938 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.3228, allocations: 4 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3228, allocations: 0 / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.27e-05/0.3229, allocations: 11.98 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001614/0.3231, allocations: 157.7 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.3233, allocations: 46.5 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.544e-05/0.3233, allocations: 16.86 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.3233, allocations: 4 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.3234, allocations: 30.56 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.3234, allocations: 0 / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006615/0.324, allocations: 318.2 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.3241, allocations: 51.41 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.132e-05/0.3241, allocations: 94.33 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.3242, allocations: 25.7 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/0.3242, allocations: 88.14 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.3242, allocations: 19.7 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.684e-05/0.3243, allocations: 17.72 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.3244, allocations: 318.8 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.859e-05/0.3244, allocations: 11.98 kB / 1.068 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.43e-05/0.3245, allocations: 11.94 kB / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.992e-05/0.3245, allocations: 32.86 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.3245, allocations: 0 / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001075/0.3246, allocations: 69.53 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.3247, allocations: 11.94 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3247, allocations: 0 / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.3247, allocations: 0 / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.581e-05/0.3248, allocations: 11.98 kB / 1.068 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3248, allocations: 7.938 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.016e-05/0.3248, allocations: 7.938 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.3248, allocations: 0 / 1.068 GB, free: 9.688 MB / 0.8262 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 6.763e-05/0.3249, allocations: 109.8 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.6e-05/0.3249, allocations: 7.969 kB / 1.068 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/0.3251, allocations: 85.92 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.3251, allocations: 4 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3251, allocations: 0 / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3251, allocations: 0 / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.3254, allocations: 315.3 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3254, allocations: 0 / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.739e-05/0.3255, allocations: 15.98 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3255, allocations: 0 / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3255, allocations: 4.031 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.3255, allocations: 3.938 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3255, allocations: 4 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.3257, allocations: 176.2 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-05/0.3258, allocations: 85.12 kB / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.3258, allocations: 4 kB / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.069e-05/0.3259, allocations: 0 / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.829e-05/0.3259, allocations: 12.05 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.3259, allocations: 0 / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.127e-05/0.326, allocations: 79.28 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.326, allocations: 0 / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002518/0.3262, allocations: 27.94 kB / 1.069 GB, free: 8.66 MB / 0.8262 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.0004556/0.3267, allocations: 0.7333 MB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001087/0.3268, allocations: 36.17 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3268, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.944e-05/0.3268, allocations: 20 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.3271, allocations: 4 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.3282, allocations: 1.323 MB / 1.071 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.3285, allocations: 0.6807 MB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.072e-05/0.3285, allocations: 8 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.237e-05/0.3285, allocations: 11.44 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.3286, allocations: 0 / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.3473, allocations: 1.593 MB / 1.073 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.287/7.635, allocations: 17.41 kB / 1.073 GB, free: 4.258 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)