Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_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.004968/0.004968, allocations: 99.42 kB / 15.73 MB, free: 6.043 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.001261/0.001261, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 286.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.065/1.065, allocations: 178.6 MB / 0.5074 GB, free: 4.512 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 94.25 kB / 0.6943 GB, free: 3.625 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5087/0.5115, allocations: 89.13 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002929/0.5144, allocations: 1.472 MB / 0.7828 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.5157, allocations: 0.6328 MB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.727e-05/0.5157, allocations: 1.094 kB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.716e-05/0.5158, allocations: 4.734 kB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.297e-05/0.5159, allocations: 10.31 kB / 0.7834 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.5165, allocations: 169.8 kB / 0.7836 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.5166, allocations: 61.64 kB / 0.7836 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.511e-05/0.5167, allocations: 4.516 kB / 0.7836 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.296e-05/0.5167, allocations: 21.5 kB / 0.7836 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.911e-05/0.5168, allocations: 28.97 kB / 0.7837 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.5168, allocations: 3.625 kB / 0.7837 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006164/0.5174, allocations: 345.1 kB / 0.784 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.429e-05/0.5175, allocations: 17.14 kB / 0.784 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.192e-05/0.5175, allocations: 25.62 kB / 0.784 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.5179, allocations: 178.2 kB / 0.7842 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.5179, allocations: 0.5156 kB / 0.7842 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.924e-06/0.5179, allocations: 3.938 kB / 0.7842 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.5179, allocations: 1.125 kB / 0.7842 GB, free: 12.05 MB / 0.5606 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.0006894/0.5186, allocations: 405.4 kB / 0.7846 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.5187, allocations: 9.688 kB / 0.7846 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.52e-05/0.5187, allocations: 37.88 kB / 0.7847 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.5188, allocations: 4.625 kB / 0.7847 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.5189, allocations: 172.7 kB / 0.7848 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.519, allocations: 3.312 kB / 0.7848 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.519, allocations: 13.53 kB / 0.7848 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.5192, allocations: 76.2 kB / 0.7849 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.5193, allocations: 3.938 kB / 0.7849 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.5193, allocations: 1.281 kB / 0.7849 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.5193, allocations: 1.281 kB / 0.7849 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.5196, allocations: 51.42 kB / 0.785 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006123/0.5202, allocations: 328.7 kB / 0.7853 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.5205, allocations: 80.44 kB / 0.7854 GB, free: 11 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.5206, allocations: 32.83 kB / 0.7854 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.5207, allocations: 5.25 kB / 0.7854 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.5207, allocations: 32.56 kB / 0.7854 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.5207, allocations: 0 / 0.7854 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.00188/0.5226, allocations: 0.6516 MB / 0.7861 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.5227, allocations: 53.44 kB / 0.7861 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.5228, allocations: 109.2 kB / 0.7862 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.5228, allocations: 27.7 kB / 0.7862 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.485e-05/0.5229, allocations: 92.03 kB / 0.7863 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.552e-05/0.523, allocations: 39.3 kB / 0.7864 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.523, allocations: 31.8 kB / 0.7864 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.5232, allocations: 319.9 kB / 0.7867 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.5233, allocations: 28.22 kB / 0.7867 GB, free: 9.734 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.5235, allocations: 32.83 kB / 0.7868 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.5238, allocations: 79.14 kB / 0.7868 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.5238, allocations: 0 / 0.7868 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003415/0.5241, allocations: 123.5 kB / 0.787 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.5241, allocations: 4.984 kB / 0.787 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.5242, allocations: 0 / 0.787 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.5242, allocations: 1.781 kB / 0.787 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.5243, allocations: 25.05 kB / 0.787 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.5243, allocations: 5.891 kB / 0.787 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.418e-05/0.5244, allocations: 3.844 kB / 0.787 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.5244, allocations: 8.031 kB / 0.787 GB, free: 9.625 MB / 0.5606 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.0001119/0.5246, allocations: 117.9 kB / 0.7871 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.5246, allocations: 10.3 kB / 0.7871 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003882/0.525, allocations: 126 kB / 0.7872 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.525, allocations: 6.266 kB / 0.7873 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.525, allocations: 3.938 kB / 0.7873 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.525, allocations: 2.422 kB / 0.7873 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006209/0.5256, allocations: 389.5 kB / 0.7876 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5257, allocations: 1.766 kB / 0.7876 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.5258, allocations: 24.81 kB / 0.7877 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.5258, allocations: 3.938 kB / 0.7877 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.5258, allocations: 7.344 kB / 0.7877 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.5258, allocations: 0 / 0.7877 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5259, allocations: 1.094 kB / 0.7877 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000542/0.5264, allocations: 252.4 kB / 0.7879 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.5265, allocations: 82.81 kB / 0.788 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.5265, allocations: 9.859 kB / 0.788 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.5266, allocations: 5.984 kB / 0.788 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.239e-05/0.5266, allocations: 6.125 kB / 0.788 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.5267, allocations: 8.312 kB / 0.788 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.622e-05/0.5267, allocations: 80.25 kB / 0.7881 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5267, allocations: 4.062 kB / 0.7881 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002916/0.527, allocations: 43.23 kB / 0.7881 GB, free: 8.699 MB / 0.5606 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.0009942/0.528, allocations: 0.8131 MB / 0.7889 GB, free: 7.992 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003435/0.5284, allocations: 83.88 kB / 0.789 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5284, allocations: 1.312 kB / 0.789 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.5285, allocations: 46.45 kB / 0.7891 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.5289, allocations: 10.64 kB / 0.7891 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.5311, allocations: 1.599 MB / 0.7906 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.5315, allocations: 0.6902 MB / 0.7913 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.303e-05/0.5315, allocations: 18.25 kB / 0.7913 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.392e-05/0.5316, allocations: 22.59 kB / 0.7913 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.5316, allocations: 0 / 0.7913 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.5586, allocations: 2.358 MB / 0.7936 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.264/8.822, allocations: 15 kB / 0.7937 GB, free: 5.457 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)