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.001902/0.001902, 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.002318/0.002318, allocations: 194 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.667/1.667, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003763/0.003763, allocations: 290.5 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.672/1.672, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002745/0.002746, allocations: 94.12 kB / 0.5953 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2823, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003919/0.2863, allocations: 1.451 MB / 0.6817 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.288, allocations: 0.6416 MB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.747e-05/0.288, allocations: 0.875 kB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.944e-05/0.2881, allocations: 7.922 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.24e-05/0.2882, allocations: 4.469 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008678/0.289, allocations: 161.4 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.2892, allocations: 47.91 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.909e-05/0.2892, allocations: 12.27 kB / 0.6826 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.412e-05/0.2893, allocations: 27.84 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.924e-05/0.2894, allocations: 27.86 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.2895, allocations: 4 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008076/0.2903, allocations: 343.4 kB / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.2903, allocations: 11.98 kB / 0.683 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.416e-05/0.2904, allocations: 27.86 kB / 0.683 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004231/0.2908, allocations: 175.5 kB / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2908, allocations: 0 / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2908, allocations: 0 / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2909, allocations: 0 / 0.6831 GB, free: 13.66 MB / 494.1 MB 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.0008723/0.2917, allocations: 403.3 kB / 0.6835 GB, free: 13.21 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.2918, allocations: 8.031 kB / 0.6835 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.823e-05/0.2919, allocations: 42.75 kB / 0.6836 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.27e-05/0.2919, allocations: 8.844 kB / 0.6836 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.2921, allocations: 172.2 kB / 0.6838 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.2922, allocations: 4.375 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.2922, allocations: 8.375 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.2926, allocations: 80.47 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.2926, allocations: 3.938 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.2927, allocations: 4 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2927, allocations: 0 / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003897/0.2931, allocations: 55.89 kB / 0.6839 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007985/0.2939, allocations: 320.7 kB / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004505/0.2944, allocations: 82.47 kB / 0.6843 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.2946, allocations: 24.84 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.2946, allocations: 4 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.2947, allocations: 46.48 kB / 0.6844 GB, free: 12.24 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.723e-06/0.2947, allocations: 0 / 0.6844 GB, free: 12.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0025/0.2972, allocations: 0.6464 MB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.2973, allocations: 55.41 kB / 0.685 GB, free: 11.44 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.2974, allocations: 101.8 kB / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.2974, allocations: 25.7 kB / 0.6852 GB, free: 11.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.2975, allocations: 96.03 kB / 0.6853 GB, free: 11.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.22e-05/0.2976, allocations: 39.34 kB / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.526e-05/0.2976, allocations: 29.7 kB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2978, allocations: 326.8 kB / 0.6856 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.298, allocations: 24.11 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.2982, allocations: 39.97 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000406/0.2987, allocations: 77.77 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2987, allocations: 0 / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004959/0.2992, allocations: 117.6 kB / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.2992, allocations: 4 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2992, allocations: 0 / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.2993, allocations: 4 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.2995, allocations: 24.17 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.2995, allocations: 7.875 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.2997, allocations: 7.984 kB / 0.6859 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.2997, allocations: 0 / 0.6859 GB, free: 10.49 MB / 494.1 MB 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.000126/0.2998, allocations: 123.2 kB / 0.686 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.78e-05/0.2999, allocations: 7.984 kB / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000588/0.3005, allocations: 133.5 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3005, allocations: 0 / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.3005, allocations: 3.938 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3005, allocations: 3.938 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008895/0.3014, allocations: 382.5 kB / 0.6866 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3015, allocations: 0 / 0.6866 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.3017, allocations: 27.97 kB / 0.6866 GB, free: 9.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3017, allocations: 3.938 kB / 0.6866 GB, free: 9.746 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.3018, allocations: 8 kB / 0.6866 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.3018, allocations: 7.938 kB / 0.6866 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.3018, allocations: 0 / 0.6866 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007832/0.3026, allocations: 245.8 kB / 0.6868 GB, free: 9.477 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.3026, allocations: 81.02 kB / 0.6869 GB, free: 9.379 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.3027, allocations: 11.97 kB / 0.6869 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.3029, allocations: 7.984 kB / 0.6869 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.583e-05/0.3029, allocations: 4 kB / 0.6869 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.303, allocations: 7.984 kB / 0.6869 GB, free: 9.348 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.057e-05/0.303, allocations: 79.28 kB / 0.687 GB, free: 9.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.303, allocations: 0 / 0.687 GB, free: 9.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005185/0.3036, allocations: 44.06 kB / 0.6871 GB, free: 9.227 MB / 494.1 MB 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.00134/0.3049, allocations: 0.8176 MB / 0.6879 GB, free: 8.383 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005346/0.3055, allocations: 95.89 kB / 0.6879 GB, free: 8.289 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.3055, allocations: 4 kB / 0.688 GB, free: 8.285 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002242/0.3057, allocations: 47.91 kB / 0.688 GB, free: 8.238 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.3063, allocations: 6.484 kB / 0.688 GB, free: 8.234 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.3096, allocations: 1.593 MB / 0.6896 GB, free: 6.559 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.3101, allocations: 0.6924 MB / 0.6902 GB, free: 5.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.3102, allocations: 16.61 kB / 0.6902 GB, free: 5.824 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.683e-05/0.3103, allocations: 25.61 kB / 0.6903 GB, free: 5.801 MB / 494.1 MB Notification: Performance of SimCode: time 4.929e-06/0.3103, allocations: 0 / 0.6903 GB, free: 5.801 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03392/0.3442, allocations: 2.314 MB / 0.6925 GB, free: 3.672 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.42, allocations: 10 kB / 0.6925 GB, free: 3.668 MB / 494.1 MB (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)